Odoo18-Base/addons/l10n_pe/views/account_tax_view.xml
2025-03-10 11:12:23 +07:00

20 lines
919 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_tax_form" model="ir.ui.view">
<field name="name">account.tax.form</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="priority" eval="900"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='type_tax_use']" position="before">
<field name="l10n_pe_edi_tax_code"
attrs="{'invisible': [('country_code', '!=', 'PE')]}"/>
<field name="l10n_pe_edi_unece_category"
attrs="{'invisible': [('country_code', '!=', 'PE')]}"/>
<field name="l10n_pe_edi_isc_type"
attrs="{'invisible': ['|', ('l10n_pe_edi_tax_code', '!=', '2000'), ('country_code', '!=', 'PE')]}"/>
</xpath>
</field>
</record>
</odoo>