<?xml version="1.0"?>
<odoo>
    <record id="account_tax_form_inherit_l10n_mx" model="ir.ui.view">
        <field name="name">account.tax.form.inherit.l10n_mx</field>
        <field name="model">account.tax</field>
        <field name="inherit_id" ref="account.view_tax_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='analytic']" position="before">
                <field name="l10n_mx_tax_type" invisible="country_code != 'MX'" required="country_code == 'MX'"/>
            </xpath>
        </field>
    </record>
</odoo>
