<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="res_config_settings_form_inherit_l10n_hu_edi" model="ir.ui.view">
        <field name="name">res.config.settings.form.inherit.l10n.hu.edi</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="account.res_config_settings_view_form"/>
        <field name="arch" type="xml">
            <xpath expr="//block[@id='invoicing_settings']" position="after">
                <block title="Hungarian Electronic Invoicing"
                       invisible="country_code != 'HU'"
                       groups="account.group_account_manager"
                       name="l10n_hu_edi_settings">
                    <setting company_dependent="1" string="NAV Credentials"
                             help="Enter your e-invoicing credentials given by the Hungarian Authority."
                             name="l10n_hu_edi_nav_credentials">
                        <div class="row">
                            <label string="Mode" for="l10n_hu_edi_server_mode" class="col-lg-3 o_light_label"/>
                            <field name="l10n_hu_edi_server_mode"/>
                        </div>
                        <div class="row">
                            <label string="Username" for="l10n_hu_edi_username" class="col-lg-3 o_light_label"/>
                            <field name="l10n_hu_edi_username"/>
                        </div>
                        <div class="row">
                            <label string="Password" for="l10n_hu_edi_password" class="col-lg-3 o_light_label"/>
                            <field name="l10n_hu_edi_password"/>
                        </div>
                        <div class="row">
                            <label string="Signature Key" for="l10n_hu_edi_signature_key" class="col-lg-3 o_light_label"/>
                            <field name="l10n_hu_edi_signature_key"/>
                        </div>
                        <div class="row">
                            <label string="Replacement Key" for="l10n_hu_edi_replacement_key" class="col-lg-3 o_light_label"/>
                            <field name="l10n_hu_edi_replacement_key"/>
                        </div>
                    </setting>
                    <setting company_dependent="1"
                             help="Your company's specific tax arrangements, if any of these apply to your company."
                             name="l10n_hu_edi_specials">
                        <field name="l10n_hu_tax_regime"/>
                    </setting>
                </block>
            </xpath>
        </field>
    </record>
</odoo>
