<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="res_config_settings_view_form_inherit_l10n_in_edi_ewaybill" model="ir.ui.view">
        <field name="name">res.config.settings.form.inherit.l10n_in_edi_ewaybill</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="//field[@name='module_l10n_in_ewaybill']" position="replace">
                <field name="l10n_in_ewaybill_feature"/>
            </xpath>
            <xpath expr="//setting[@name='electronic_waybill_in']/div[hasclass('content-group')]" position="replace">
                <div class="content-group" invisible="not l10n_in_ewaybill_feature">
                    <div class="mt16 row">
                        <label for="l10n_in_ewaybill_username"
                               string="Username"
                               class="col-3 col-lg-3 o_light_label"/>
                        <field name="l10n_in_ewaybill_username" nolabel="1"/>
                    </div>
                    <div class="row">
                        <label for="l10n_in_ewaybill_password"
                               string="Password"
                               class="col-3 col-lg-3 o_light_label"/>
                        <field name="l10n_in_ewaybill_password" password="True" nolabel="1"/>
                    </div>
                </div>
                <div class='mt8' invisible="not l10n_in_ewaybill_feature">
                    <button name="l10n_in_ewaybill_test"
                            icon="oi-arrow-right"
                            type="object"
                            string="Verify Username and Password"
                            class="btn-link"/>
                </div>
            </xpath>
        </field>
    </record>
</odoo>
