<?xml version="1.0" encoding="utf-8" ?>
<odoo>

    <!-- pos.config -->

    <record id="pos_config_view_form" model="ir.ui.view">
        <field name="name">pos.config.form.view</field>
        <field name="model">pos.config</field>
        <field name="inherit_id" ref="point_of_sale.pos_config_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[@id='category_reference']" position="before">
                <div class="col-12 col-lg-6 o_setting_box">
                    <div class="o_setting_left_pane">
                        <field name="pay_on_reservation" />
                    </div>
                    <div
                        class="o_setting_right_pane"
                        attrs="{'invisible': [('pay_on_reservation', '=', False)]}"
                    >
                        <label for="pay_on_reservation" />
                        <div class="text-muted">
                            Allow pay on reservations
                        </div>
                        <div class="content-group mt16">
                            <field name="pay_on_reservation_method_id" />
                        </div>

                        <label for="pay_on_reservation" />
                        <div class="text-muted">
                            Allowed properties
                        </div>
                        <div class="content-group mt16">
                            <field
                                name="reservation_allowed_propertie_ids"
                                widget="many2many_tags"
                            />
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>

</odoo>
