<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_stock_config_settings" model="ir.ui.view">
        <field name="name">res.config.settings - inventory_discrepancy</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="//div[@id='warning_info']" position="after">
                <div
                    class="col-12 col-lg-6 o_setting_box"
                    id="inventory_discrepancy_enable"
                >
                    <div class="o_setting_left_pane">
                        <field name="inventory_discrepancy_enable" />
                    </div>
                    <div class="o_setting_right_pane">
                        <label for="inventory_discrepancy_enable" />
                        <span
                            class="fa fa-lg fa-building-o"
                            title="Values set here are company-specific."
                            aria-label="Values set here are company-specific."
                            groups="base.group_multi_company"
                            role="img"
                        />
                        <div class="text-muted">
                            Block validation of the inventory adjustment if discrepancy exceeds the threshold.
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>
</odoo>
