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>
14 lines
541 B
XML
14 lines
541 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record model="ir.ui.view" id="res_partner_form_ro">
|
|
<field name="name">res.partner.form.ro</field>
|
|
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
<field name="model">res.partner</field>
|
|
<field name="arch" type="xml">
|
|
<field name="vat" position="after">
|
|
<field name="nrc" placeholder="e.g. J12/1234/2012" class="oe_inline" attrs="{'invisible': [('fiscal_country_codes', 'not ilike', 'RO')]}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|