<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="view_company_form_l10n_hu_edi" model="ir.ui.view">
        <field name="name">res.company.form.l10n_hu_edi</field>
        <field name="model">res.company</field>
        <field name="inherit_id" ref="account.view_company_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='company_registry']" position="after">
                <field name="account_fiscal_country_id" invisible="1"/>
                <field name="l10n_hu_group_vat" invisible="account_fiscal_country_id != %(base.hu)d"/>
            </xpath>
        </field>
    </record>

</odoo>
