<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="view_pos_config_kanban" model="ir.ui.view">
        <field name="name">pos.config.kanban.view</field>
        <field name="model">pos.config</field>
        <field name="inherit_id" ref="point_of_sale.view_pos_config_kanban" />
        <field name="arch" type="xml">
            <button name="open_ui" position="after">
                <button
                    t-if="record.current_session_state.raw_value === 'opened'"
                    class="btn btn-info"
                    name="open_existing_session_cb"
                    type="object"
                >Summary</button>
            </button>
        </field>
    </record>
    <record id="view_pos_session_form" model="ir.ui.view">
        <field name="name">pos.session.form.view</field>
        <field name="model">pos.session</field>
        <field name="inherit_id" ref="point_of_sale.view_pos_session_form" />
        <field name="arch" type="xml">
            <div name="button_box" position="inside">
                <button
                    class="oe_stat_button"
                    name="button_show_wizard_pay_out_refund"
                    type="object"
                    icon="fa-level-up"
                    attrs="{'invisible':['|',('cash_control', '=', False), ('state', 'not in', ['opened', 'closing_control'])]}"
                >
                    <div class="o_form_field o_stat_info">
                        <span class="o_stat_text">Pay</span>
                        <span class="o_stat_text">Refund</span>
                    </div>
                </button>
                <button
                    class="oe_stat_button"
                    name="button_show_wizard_pay_in_invoice"
                    type="object"
                    icon="fa-level-up"
                    attrs="{'invisible':['|',('cash_control', '=', False), ('state', 'not in', ['opened', 'closing_control'])]}"
                >
                    <div class="o_form_field o_stat_info">
                        <span class="o_stat_text">Pay Supplier</span>
                        <span class="o_stat_text">Invoice</span>
                    </div>
                </button>
                <button
                    class="oe_stat_button"
                    name="button_show_wizard_pay_out_invoice"
                    type="object"
                    icon="fa-level-down"
                    attrs="{'invisible':['|',('cash_control', '=', False), ('state', 'not in', ['opened', 'closing_control'])]}"
                >
                    <div class="o_form_field o_stat_info">
                        <span class="o_stat_text">Get Payment</span>
                        <span class="o_stat_text">from Invoice</span>
                    </div>
                </button>
            </div>
        </field>
    </record>
</odoo>
