Browse Source

base_location - Adapt views to 9.0

pull/523/head
Yannick Vaucher 9 years ago
committed by Jairo Llopis
parent
commit
bcd76a1cf1
  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="name">res.better.zip.form</field>
<field name="model">res.better.zip</field> <field name="model">res.better.zip</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="ZIP" version="7.0">
<form string="ZIP">
<group col="4"> <group col="4">
<field name="name"/> <field name="name"/>
<field name="code"/> <field name="code"/>

13
base_location/views/partner_view.xml

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

Loading…
Cancel
Save