<?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 - purchase_advance_payment</field>
        <field name="model">res.config.settings</field>
        <field
            name="inherit_id"
            ref="purchase.res_config_settings_view_form_purchase"
        />
        <field name="arch" type="xml">
            <xpath expr="//div[@name='invoicing_settings_container']" position="inside">
                <div
                    class="col-12 col-lg-6 o_setting_box"
                    id="purchase_advance_payment_auto_post_advance_payments"
                    title="If enabled, advance payments created from POs are automatically posted."
                >
                    <div class="o_setting_left_pane">
                        <field name="auto_post_purchase_advance_payments" />
                    </div>
                    <div class="o_setting_right_pane">
                        <label for="auto_post_purchase_advance_payments" />
                        <div class="text-muted">
                            If enabled, advance payments created from POs are automatically posted.
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>
</odoo>
