<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <data>
        <record id="view_company_form_inherit_l10n_th" model="ir.ui.view">
            <field name="name">res.company.form.inherit.l10n_th</field>
            <field name="model">res.company</field>
            <field name="inherit_id" ref="base.view_company_form"/>
            <field name="arch" type="xml">
                <field name="company_registry" position="attributes">
                    <attribute name="invisible" add="country_code == 'TH'" separator=" or "/>
                </field>
                <field name="company_registry" position="after">
                    <field name="company_registry"
                           string="Branch Code"
                           invisible="country_code != 'TH'"
                           help="The 5-digit branch code as registered with the Revenue Department."/>
                </field>
            </field>
        </record>
    </data>
</odoo>
