Debian Codegraph @

addons/l10n_ar_withholding/views/account_tax_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="view_tax_form-l10n_ar" model="ir.ui.view">
4 <field name="name">account.tax.form.l10n_ar.inherit</field>
5 <field name="model">account.tax</field>
6 <field name="inherit_id" ref="account.view_tax_form"/>
7 <field name="arch" type="xml">
8 <field name="type_tax_use" position="attributes">
9 <attribute name="invisible" separator="or" add="country_code == 'AR'"/>
10 </field>
11 <field name="amount_type" position="attributes">
12 <attribute name="invisible" separator="or" add="l10n_ar_tax_type == 'earnings_scale'"/>
13 </field>
14 <label for="amount" position="attributes">
15 <attribute name="invisible" separator="or" add="l10n_ar_tax_type == 'earnings_scale'"/>
16 </label>
17 <xpath expr="//field[@name='amount']/.." position="attributes">
18 <attribute name="invisible" separator="or" add="l10n_ar_tax_type == 'earnings_scale'"/>
19 </xpath>
20 <field name="name" position="after">
21 <field name="l10n_ar_tax_type" invisible="l10n_ar_type_tax_use not in ('customer', 'supplier')"/>
22 <field name="l10n_ar_scale_id" invisible="l10n_ar_tax_type != 'earnings_scale'" required="l10n_ar_tax_type == 'earnings_scale'" options="{'no_create': True}"/>
23 </field>
24 <field name="type_tax_use" position="after">
25 <field name="l10n_ar_type_tax_use" invisible="country_code != 'AR'" string="Tax Type" required="country_code == 'AR'"/>
26 </field>
27 <xpath expr="//field[@name='amount']/.." position="after">
28 <field name="l10n_ar_withholding_payment_type" invisible="1"/><!-- Because of onchange-->
29 <field name="l10n_ar_state_id" invisible="l10n_ar_tax_type not in ['iibb_untaxed', 'iibb_total']" required="l10n_ar_tax_type in ['iibb_untaxed', 'iibb_total']" options="{'no_create': True}"/>
30 <field name="l10n_ar_non_taxable_amount" invisible="country_code != 'AR' or l10n_ar_type_tax_use != 'supplier'"/>
31 <field name="l10n_ar_minimum_threshold" invisible="country_code != 'AR' or l10n_ar_type_tax_use != 'supplier'"/>
32 <field name="l10n_ar_withholding_sequence_id" context="{'default_name': name}" invisible="l10n_ar_withholding_payment_type != 'supplier'"/>
33 <field name="l10n_ar_code" invisible="l10n_ar_tax_type not in ['earnings', 'earnings_scale'] or l10n_ar_type_tax_use != 'supplier'" required="l10n_ar_tax_type in ['earnings', 'earnings_scale'] and l10n_ar_type_tax_use == 'supplier'"/>
34 </xpath>
35 </field>
36 </record>
37 </odoo>