Browse Source

base_location - Adapt views to 9.0

pull/187/head
Yannick Vaucher 9 years ago
parent
commit
76e71c7f11
  1. 2
      base_location/views/better_zip_view.xml
  2. 13
      base_location/views/partner_view.xml

2
base_location/views/better_zip_view.xml

@ -6,7 +6,7 @@
<field name="name">res.better.zip.form</field>
<field name="model">res.better.zip</field>
<field name="arch" type="xml">
<form string="ZIP" version="7.0">
<form string="ZIP">
<group col="4">
<field name="name"/>
<field name="code"/>

13
base_location/views/partner_view.xml

@ -7,17 +7,16 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<div class="address_format" position="before">
<field name="city" position="before">
<field name="zip_id"
options="{'create_name_field': 'city'}"
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="City completion"
attrs="{'invisible': [('use_parent_address','=',True)]}"
class="oe_edit_only" />
</div>
<xpath expr="//field[@name='child_ids']/form//div[@class='address_format']" position="before">
<field name="zip_id" options="{'create_name_field': 'city'}"
</field>
<xpath expr="//field[@name='child_ids']/form//field[@name='city']" position="before">
<field name="zip_id"
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="City completion"
attrs="{'invisible': [('use_parent_address','=',True)]}"
class="oe_edit_only" />
</xpath>
</field>

Loading…
Cancel
Save