<?xml version="1.0" encoding="utf-8" ?>
<!--
  Copyright 2017-2022 Akretion France (http://www.akretion.com/)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
    <record id="view_account_config_settings" model="ir.ui.view">
        <field name="name">account_invoice_facturx.res.config.settings</field>
        <field name="model">res.config.settings</field>
        <field
            name="inherit_id"
            ref="account_einvoice_generate.view_account_config_settings"
        />
        <field name="arch" type="xml">
            <div id="e-invoices" position="after">
                <div class="col-xs-12 col-md-6 o_setting_box" id="facturx">
                    <div class="o_setting_left_pane" />
                    <div class="o_setting_right_pane">
                            <div
                            class="content-group"
                            name="facturx_level"
                            attrs="{'invisible': [('xml_format_in_pdf_invoice', '!=', 'factur-x')]}"
                        >
                            <div class="row mt16">
                                <label for="facturx_level" class="col-md-5" />
                                <field
                                    name="facturx_level"
                                    attrs="{'required': [('xml_format_in_pdf_invoice', '=', 'factur-x')]}"
                                />
                            </div>
                        </div>
                        <div
                            class="content-group"
                            name="facturx_refund_type"
                            attrs="{'invisible': [('xml_format_in_pdf_invoice', '!=', 'factur-x')]}"
                        >
                            <div class="row mt16">
                                <label for="facturx_refund_type" class="col-md-5" />
                                <field
                                    name="facturx_refund_type"
                                    attrs="{'required': [('xml_format_in_pdf_invoice', '=', 'factur-x')]}"
                                />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </field>
    </record>
</odoo>
