Files
odoo_source/addons/l10n_cl/views/res_partner.xml
T
Ricardo Gomes Rodrigues (rigr) 6b396c84e5 [IMP] account,l10n_*: clean country-specific fields from views
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>
2022-12-09 11:48:42 +01:00

26 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_move_form" model="ir.ui.view">
<field name="name">res.partner.placeholders.l10n_cl.form</field>
<field name="inherit_id" ref="account.view_partner_property_form"/>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<field name="street2" position="attributes">
<attribute name="placeholder">Datos adic. dirección y Ciudad</attribute>
</field>
<field name="city" position="attributes">
<attribute name="placeholder">Comuna</attribute>
</field>
<field name="state_id" position="attributes">
<attribute name="placeholder">Región</attribute>
</field>
<field name="vat" position="after">
<field name="l10n_cl_sii_taxpayer_type" attrs="{'readonly': [('parent_id', '!=', False)], 'invisible': [('fiscal_country_codes', 'not ilike', 'CL')]}"/>
<field name="l10n_cl_activity_description" placeholder="Activity Description" attrs="{'invisible': [('fiscal_country_codes', 'not ilike', 'CL')]}"/>
</field>
</field>
</record>
</odoo>