<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="res_config_settings_view_form_purchase" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.purchase</field>
        <field name="model">res.config.settings</field>
        <field name="priority" eval="25" />
        <field
            name="inherit_id"
            ref="purchase.res_config_settings_view_form_purchase"
        />
        <field name="arch" type="xml">
            <xpath expr="//div[@data-key='purchase']" position="inside">
                <h2>Work Acceptance</h2>
                <div
                    class="row mt16 o_settings_container"
                    name="purchase_work_acceptance_setting_container"
                >
                    <div class="col-12 col-lg-6 o_setting_box">
                        <div class="o_setting_left_pane">
                            <field name="group_enable_wa_on_po" />
                        </div>
                        <div class="o_setting_right_pane">
                            <label for="group_enable_wa_on_po" />
                            <div
                                class="content-group"
                                attrs="{'invisible': [('group_enable_wa_on_po' ,'=', False)]}"
                            >
                                <div class="mt16">
                                    <field
                                        name="group_enable_wa_on_in"
                                        class="oe_inline"
                                    />
                                    <label
                                        for="group_enable_wa_on_in"
                                        class="o_light_label"
                                    />
                                </div>
                                <div
                                    class="mt4 ml32"
                                    attrs="{'invisible': [('group_enable_wa_on_in' ,'=', False)]}"
                                >
                                    <field
                                        name="group_enforce_wa_on_in"
                                        class="oe_inline"
                                    />
                                    <label
                                        for="group_enforce_wa_on_in"
                                        class="o_light_label"
                                    />
                                </div>
                                <div class="mt8">
                                    <field
                                        name="group_enable_wa_on_invoice"
                                        class="oe_inline"
                                    />
                                    <label
                                        for="group_enable_wa_on_invoice"
                                        class="o_light_label"
                                    />
                                </div>
                                <div
                                    class="mt4 ml32"
                                    attrs="{'invisible': [('group_enable_wa_on_invoice' ,'=', False)]}"
                                >
                                    <field
                                        name="group_enforce_wa_on_invoice"
                                        class="oe_inline"
                                    />
                                    <label
                                        for="group_enforce_wa_on_invoice"
                                        class="o_light_label"
                                    />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>
</odoo>
