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

        <record id="view_session_confirmation_form" model="ir.ui.view">
            <field name="name">session.confirmation.form</field>
            <field name="model">session.confirmation</field>
            <field name="arch" type="xml">
                <form string="Session Confirmation" version="7.0">
                    <h2>Are you sure you want to confirm selected sessions ?</h2>
                    <footer>
                        <span class="w-100" groups="base.group_user">
                            <button string="Yes" type="object" name="state_confirmation" class="oe_highlight m-2"/>
                            <button special="cancel" string="No" type="object"/>
                        </span>
                    </footer>
                </form>
            </field>
        </record>

        <record id="session_confirmation_form_view_act" model="ir.actions.act_window">
            <field name="name">Confirmation</field>
            <field name="res_model">session.confirmation</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
            <field name="path">session-confirmation</field>
            <field name="binding_model_id" ref="model_op_session"/>
        </record>

</odoo>
