[FIX] l10n_ar: traceback filter

It seems that the invisible is not working on filter and so the fiscal
country_code cannot be evaluated which causes a Traceback when trying to access
the res_partner form view.

closes odoo/odoo#139698

Task: 3270458
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
This commit is contained in:
Maximilien (malb)
2023-10-25 19:37:35 +00:00
parent 128054575c
commit c123b676da
+1 -1
View File
@@ -44,7 +44,7 @@
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<field name="category_id" position="after">
<field name="l10n_ar_afip_responsibility_type_id" invisible="'AR' not in fiscal_country_codes"/>
<field name="l10n_ar_afip_responsibility_type_id"/>
</field>
<filter name="salesperson" position="before">
<filter string="AFIP Responsibility Type" name="l10n_ar_afip_responsibility_type_id_filter" context="{'group_by': 'l10n_ar_afip_responsibility_type_id'}"/>