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>
16 lines
514 B
XML
16 lines
514 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record model="ir.ui.view" id="view_currency_form">
|
|
<field name="name">res.currency.form</field>
|
|
<field name="inherit_id" ref="base.view_currency_form"/>
|
|
<field name="model">res.currency</field>
|
|
<field name="arch" type="xml">
|
|
<field name="name" position="after">
|
|
<field name="l10n_ar_afip_code" invisible="'AR' not in fiscal_country_codes"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|