1
<?xml version="1.0" encoding="UTF-8"?>
4
##############################################################################
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]
10
# This file is a part of wms_routing
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.
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.
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/].
25
##############################################################################
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 & Purchases']/group/field[@name='property_stock_customer']" position="after">
35
<field name="round_id" attrs="{'required': [('customer','=', 1)]}" widget="selection"/>
37
<xpath expr="/form/notebook/page/field[@name='address']/form/group/field[@name='type']" position="after">
38
<field name="round_id" widget="selection"/>
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"/>