Many country-specific fields were displayed while a company with another country was selected (in case of a multi-company environment). These country-specific fields are now visible only if one of the selected companies with said country is selected. closes odoo/odoo#106221 Related: odoo/enterprise#34226 Signed-off-by: John Laterre (jol) <jol@odoo.com>
16 lines
643 B
XML
16 lines
643 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="res_partner_form_inherit_ca" model="ir.ui.view">
|
|
<field name="name">res.partner.form.inherit.l10n.ca</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='vat']" position="after">
|
|
<field name="l10n_ca_pst" attrs="{'invisible': [('fiscal_country_codes', 'not ilike', 'CA')]}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|