Files
odoo_source/addons/l10n_ca/views/res_partner_view.xml
T
Antoine Boonen 2ae8f8ca61 [IMP] l10n_xx: Fiscal country codes XML code cleanup
Problem
---------
In master, XML attributes have been modifed from attrs={'invisible':...}
to invisible=. During the conversion, the condition where not properly
cleaned up.

Objective
---------
Clean up the XML attributes.

Solution
---------
Reduce conditions by removing unecessary elements:
    - `fiscal_country_codes` always returns at least an empty string.
    - All country codes are in capital letters, no need to `lower` them.

task-3493124

closes odoo/odoo#134329

Related: odoo/enterprise#46920
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-10-03 19:19:58 +00:00

16 lines
619 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" invisible="'CA' not in fiscal_country_codes"/>
</xpath>
</field>
</record>
</data>
</odoo>