Skip to content

Commit 83854d4

Browse files
committed
[IMP] l10n_ar_tax: hide irrelevant fields on fiscal position view
closes #1383 Related: ingadhoc/sale#1648 Signed-off-by: Pablo Montenegro - pam (#l10n) <pam@adhoc.com.ar>
1 parent c151ae7 commit 83854d4

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

l10n_ar_tax/views/account_fiscal_position_view.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<field name="inherit_id" ref="account.view_account_position_form"/>
88
<field name="arch" type="xml">
99
<notebook>
10-
<page string="Perceptions and Withholdings" invisible="'AR'not in fiscal_country_codes">
10+
<page string="Perceptions and Withholdings" invisible="'AR' not in fiscal_country_codes">
1111
<field name="l10n_ar_tax_ids">
1212
<list editable="bottom">
1313
<field name="tax_type"/>
@@ -17,6 +17,21 @@
1717
</field>
1818
</page>
1919
</notebook>
20+
<xpath expr="//field[@name='foreign_vat']" position="attributes">
21+
<attribute name="invisible" add="'AR' in fiscal_country_codes" separator="or"/>
22+
</xpath>
23+
<xpath expr="//field[@name='country_group_id']" position="attributes">
24+
<attribute name="invisible" add="'AR' in fiscal_country_codes" separator="or"/>
25+
</xpath>
26+
<xpath expr="//label[@for='zip_from']" position="attributes">
27+
<attribute name="invisible" add="'AR' in fiscal_country_codes" separator="or"/>
28+
</xpath>
29+
<xpath expr="//div[field[@name='zip_from']]" position="attributes">
30+
<attribute name="invisible" add="'AR' in fiscal_country_codes" separator="or"/>
31+
</xpath>
32+
<xpath expr="//page[@name='account_mapping']" position="attributes">
33+
<attribute name="invisible" add="'AR' in fiscal_country_codes" separator="or"/>
34+
</xpath>
2035
</field>
2136
</record>
2237

0 commit comments

Comments
 (0)