Skip to content
Snippets Groups Projects
Commit 487a90a1 authored by Benjamin Frantzen (bfr)'s avatar Benjamin Frantzen (bfr)
Browse files

[FIX] l10n_cl_edi, l10n_in_edi, l10n_it_edi: hide localization fields on tax...

[FIX] l10n_cl_edi, l10n_in_edi, l10n_it_edi: hide localization fields on tax and move form views when the record is from a different country

closes odoo/odoo#75461

Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent a392674a
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,11 @@
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<field position="after" name="price_include">
<field name="tax_discount"/>
<field name="tax_discount" attrs="{'invisible': [('country_code', '!=', 'BR')]}"/>
</field>
<field position="after" name="tax_discount">
<field name="base_reduction" widget="monetary"/>
<field name="amount_mva" widget="monetary"/>
<field name="base_reduction" widget="monetary" attrs="{'invisible': [('country_code', '!=', 'BR')]}"/>
<field name="amount_mva" widget="monetary" attrs="{'invisible': [('country_code', '!=', 'BR')]}"/>
</field>
</field>
</record>
......
......@@ -7,7 +7,7 @@
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="l10n_cl_sii_code" options="{'format': false}"/>
<field name="l10n_cl_sii_code" options="{'format': false}" attrs="{'invisible': [('country_code', '!=', 'CL')]}"/>
</field>
</field>
</record>
......
......@@ -6,7 +6,7 @@
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<field name="include_base_amount" position="after">
<field name="l10n_de_datev_code"/>
<field name="l10n_de_datev_code" attrs="{'invisible': [('country_code', '!=', 'DE')]}"/>
</field>
</field>
</record>
......
......@@ -6,7 +6,7 @@
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<field name="include_base_amount" position="after">
<field name="l10n_in_reverse_charge" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
<field name="l10n_in_reverse_charge" attrs="{'invisible':['|', ('amount_type','=', 'group'), ('country_code', '!=', 'IN')]}"/>
</field>
</field>
</record>
......
......@@ -168,7 +168,7 @@
<xpath expr="//page[@name='other_info']" position="after">
<page string="Electronic Invoicing"
name="electronic_invoicing"
attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}">
attrs="{'invisible': ['|', ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('country_code', '!=', 'IT')]}">
<group>
<group>
<field name="l10n_it_stamp_duty"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment