mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-11-17 03:22:03 +00:00
876516c055
[FIX] l10n_ch_zip
30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
<flectra>
|
|
|
|
<!-- Add cities to the company form -->
|
|
<record id="view_company_form_city" model="ir.ui.view">
|
|
<field name="name">res.company.form.city</field>
|
|
<field name="model">res.company</field>
|
|
<field name="inherit_id" ref="base.view_company_form" />
|
|
<field name="arch" type="xml">
|
|
<field name="street2" position="after">
|
|
<field name="zip_id"
|
|
options="{'create_name_field': 'city'}"
|
|
colspan="4"
|
|
placeholder="City completion" />
|
|
</field>
|
|
<field name="city" position="after">
|
|
<field name="country_enforce_cities" invisible="1"/>
|
|
<field name='city_id'
|
|
attrs="{'invisible': [('country_enforce_cities', '=', False)]}"/>
|
|
</field>
|
|
<field name="city" position="attributes">
|
|
<attribute name="attrs">
|
|
{'invisible': [('country_enforce_cities', '=', False)]}
|
|
</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</flectra>
|