<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_tax_tree_inherit_l10n_es_edi_facturae" model="ir.ui.view">
            <field name="name">account.tax.tree.inherit.l10n_es_edi_facturae</field>
            <field name="inherit_id" ref="account.view_tax_tree"/>
            <field name="model">account.tax</field>
            <field name="arch" type="xml">
                <field name="country_id" position="after">
                    <field name="country_code" column_invisible="True"/>
                    <field name="l10n_es_edi_facturae_tax_type" string="Spanish Tax Type" optional="hide"
                        invisible="country_code != 'ES'"/>
                </field>
            </field>
        </record>

        <record id="view_tax_form_inherit_l10n_es_edi_facturae" model="ir.ui.view">
            <field name="name">account.tax.form.inherit.l10n_es_edi_facturae</field>
            <field name="model">account.tax</field>
            <field name="inherit_id" ref="account.view_tax_form"/>
            <field name="arch" type="xml">
                <field name="country_id" position="after">
                    <field name="l10n_es_edi_facturae_tax_type" invisible="country_code != 'ES'"/>
                </field>
            </field>
        </record>
    </data>
</odoo>
