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
14 lines
577 B
XML
14 lines
577 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="res_partner_view_form_inherit_l10n_cz" model="ir.ui.view">
|
|
<field name="name">res.partner.view.form.inherit.l10n.cz</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="before">
|
|
<field name="company_registry" invisible="'CZ' not in fiscal_country_codes"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|