<?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.pos_financial_risk</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="point_of_sale.res_config_settings_view_form" />
        <field name="arch" type="xml">
            <div id="payment_methods_new" position="after">
                <div
                    class="col-12 col-lg-6 o_setting_box"
                    id="payment_methods_restricted"
                >
                    <div class="o_setting_right_pane">
                        <span class="o_form_label">Credit Limit Restricted</span>
                        <div class="text-muted">
                            Payment methods with credit limit restricted
                        </div>
                        <div class="content-group mt16">
                            <field
                                name="pos_payment_credit_limit_restricted_ids"
                                colspan="4"
                                nolabel="1"
                                widget="many2many_tags"
                                attrs="{'readonly': [('pos_has_active_session','=', True)]}"
                                options="{'no_create': True}"
                            />
                        </div>
                    </div>
                </div>
            </div>
        </field>
    </record>

</odoo>
