[FIX] l10n_sk: fix visibility for company_registry field when l10n_cz and l10n_sk are installed
In a multicompany setup when l10n_cz is installed after l10n_sk then the Company ID field disappears from Contacts form view if current company is not a CZ company (fiscal_country_codes != CZ). On the other hand if the current company is a CZ company then the field is doubled in the form view. This change prevents the field from disappearing by reverting the visibility condition change introduced by each of the l10n_sk and l10n_cz module because they are clashing. Part-of: odoo/odoo#158605
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
<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='company_registry']" position="replace">
|
||||
<field name="company_registry" invisible="'CZ' not in fiscal_country_codes"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='vat']" position="before">
|
||||
<field name="company_registry" invisible="'CZ' not in fiscal_country_codes"/>
|
||||
</xpath>
|
||||
|
||||
@@ -5,9 +5,6 @@
|
||||
<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='company_registry']" position="replace">
|
||||
<field name="company_registry" invisible="'SK' not in fiscal_country_codes"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='vat']" position="before">
|
||||
<field name="company_registry" invisible="'SK' not in fiscal_country_codes"/>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user