~syleam/syleam-modules/6.1

« back to all changes in this revision

Viewing changes to wms_routing/base_view.xml

  • Committer: Sebastien LANGE
  • Date: 2012-11-13 21:16:25 UTC
  • Revision ID: git-v1:3f638c30fde5da87f353643c160ff304e56eba34
[IMP] Add Syleam modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
    <data>
 
4
        ##############################################################################
 
5
        #
 
6
        #    wms_routing module for OpenERP, This module allows to assing rounds to orders to set default locations automatically on moves
 
7
        #    Copyright (C) 2011 SYLEAM Info Services ([http://www.Syleam.fr/]) 
 
8
        #              Sylvain Garancher [sylvain.garancher@syleam.fr]
 
9
        #
 
10
        #    This file is a part of wms_routing
 
11
        #
 
12
        #    wms_routing is free software: you can redistribute it and/or modify
 
13
        #    it under the terms of the GNU General Public License as published by
 
14
        #    the Free Software Foundation, either version 3 of the License, or
 
15
        #    (at your option) any later version.
 
16
        #
 
17
        #    wms_routing is distributed in the hope that it will be useful,
 
18
        #    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
        #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
        #    GNU General Public License for more details.
 
21
        #
 
22
        #    You should have received a copy of the GNU General Public License
 
23
        #    along with this program.  If not, see [http://www.gnu.org/licenses/].
 
24
        #
 
25
        ##############################################################################
 
26
 
 
27
        <record id="view_res_partner_form" model="ir.ui.view">
 
28
            <field name="name">res.partner.form</field>
 
29
            <field name="model">res.partner</field>
 
30
            <field name="type">form</field>
 
31
            <field name="priority" eval="20"/>
 
32
            <field name="inherit_id" ref="base.view_partner_form"/>
 
33
            <field name="arch" type="xml">
 
34
                <xpath expr="/form/notebook/page[@string='Sales &amp; Purchases']/group/field[@name='property_stock_customer']" position="after">
 
35
                    <field name="round_id" attrs="{'required': [('customer','=', 1)]}" widget="selection"/>
 
36
                </xpath>
 
37
                <xpath expr="/form/notebook/page/field[@name='address']/form/group/field[@name='type']" position="after">
 
38
                    <field name="round_id" widget="selection"/>
 
39
                </xpath>
 
40
            </field>
 
41
        </record>
 
42
 
 
43
        <record id="view_res_partner_address_form" model="ir.ui.view">
 
44
            <field name="name">res.partner.address.form</field>
 
45
            <field name="model">res.partner.address</field>
 
46
            <field name="type">form</field>
 
47
            <field name="priority" eval="8"/>
 
48
            <field name="inherit_id" ref="base.view_partner_address_form1"/>
 
49
            <field name="arch" type="xml">
 
50
                <xpath expr="/form/group" position="inside">
 
51
                    <field name="round_id" widget="selection"/>
 
52
                </xpath>
 
53
            </field>
 
54
        </record>
 
55
 
 
56
    </data>
 
57
</openerp>