<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.batch.picking</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="stock.res_config_settings_view_form" />
        <field name="arch" type="xml">
            <xpath
                expr="//label[@for='module_stock_picking_batch']/.."
                position="inside"
            >
                <div
                    class="row mt-2"
                    attrs="{'invisible': [('module_stock_picking_batch','=',False)]}"
                >
                    <field
                        name="use_oca_batch_validation"
                        class="col flex-grow-0 ml16 mr0 pe-2"
                    />
                    <div class="col ps-0">
                        <label for="use_oca_batch_validation" />
                        <div class="text-muted">Apply OCA batch validation</div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>
</odoo>
