<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_account_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="arch" type="xml">
                <field name="name" position="after">
                    <field name="l10n_cl_sii_code" options="{'format': false}" attrs="{'invisible': [('country_code', '!=', 'CL')]}"/>
                </field>
            </field>
        </record>

        <record id="view_tax_sii_code_tree" model="ir.ui.view">
            <field name="name">account.tax.sii.code.tree</field>
            <field name="model">account.tax</field>
            <field name="inherit_id" ref="account.view_tax_tree" />
            <field name="arch" type="xml">
                <field name="name" position="before">
                    <field name="l10n_cl_sii_code" options="{'format': false}"/>
                </field>
            </field>
        </record>

        <record id="view_account_tax_template_form" model="ir.ui.view">
            <field name="name">account.tax.template.form</field>
            <field name="model">account.tax.template</field>
            <field name="inherit_id" ref="account.view_account_tax_template_form"/>
            <field name="arch" type="xml">
                <field name="name" position="after">
                    <field name="l10n_cl_sii_code" options="{'format': false}"/>
                </field>
            </field>
        </record>

        <record id="view_account_tax_template_tree" model="ir.ui.view">
            <field name="name">account.tax.template.sii.tree</field>
            <field name="model">account.tax.template</field>
            <field name="inherit_id" ref="account.view_account_tax_template_tree" />
            <field name="arch" type="xml">
                <field name="name" position="before">
                    <field name="l10n_cl_sii_code" options="{'format': false}"/>
                </field>
            </field>
        </record>
    </data>
</odoo>