Browse Source

[IMP] base_location: create_name_field for zip_id and added field for contact form.

pull/2/head
Pedro M. Baeza 11 years ago
parent
commit
85ba316b56
  1. 1
      base_location/company_view.xml
  2. 13
      base_location/partner_view.xml

1
base_location/company_view.xml

@ -9,6 +9,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="street2" position="after"> <field name="street2" position="after">
<field name="better_zip_id" <field name="better_zip_id"
options="{'create_name_field': 'city'}"
colspan="4" colspan="4"
on_change="on_change_city(better_zip_id)" on_change="on_change_city(better_zip_id)"
placeholder="City completion" /> placeholder="City completion" />

13
base_location/partner_view.xml

@ -8,11 +8,20 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="street2" position="after"> <field name="street2" position="after">
<field name="zip_id" <field name="zip_id"
options="{'create_name_field': 'city'}"
on_change="onchange_zip_id(zip_id)" on_change="onchange_zip_id(zip_id)"
placeholder="City completion" placeholder="City completion"
attrs="{'invisible': [('use_parent_address','=',True)]}"
/>
attrs="{'invisible': [('use_parent_address','=',True)]}"
/>
</field> </field>
<xpath expr="//field[@name='child_ids']/form//field[@name='street2']" position="after">
<field name="zip_id"
options="{'create_name_field': 'city'}"
on_change="onchange_zip_id(zip_id)"
placeholder="City completion"
attrs="{'invisible': [('use_parent_address','=',True)]}"
/>
</xpath>
</field> </field>
</record> </record>
</data> </data>

Loading…
Cancel
Save