1 <?xml version="1.0" encoding="UTF-8"?>
4 <record model="ir.ui.view" id="pos_session_opening_form_view">
5 <field name="name">pos.session.opening.form.view</field>
6 <field name="model">pos.session.opening</field>
7 <field name="arch" type="xml">
8 <form string="PoS Session Opening" version="7.0">
9 <separator string="Select your Point of Sale" colspan="4" />
11 <field name="pos_config_id" on_change="on_change_config(pos_config_id)"
12 widget="selection" domain="[('state','=','active')]"
14 <field name="pos_state" class="oe_inline" attrs="{'invisible' : [('pos_state', '=', False)]}" />
16 <field name="pos_session_id" invisible="1"/>
17 <button name="open_ui" type="object" string="Start Selling"
18 attrs="{'invisible' : [('pos_state', 'not in', ('opened',))]}"
21 <button name="open_existing_session_cb" type="object" string="Open Session"
22 attrs="{'invisible' : [('pos_state', 'not in', ('opening_control',))]}"
25 <button name="open_existing_session_cb_close" type="object" string="Close Session"
26 attrs="{'invisible' : [('pos_state', 'not in', ('opened',))]}"
28 <button name="open_existing_session_cb" type="object" string="Close Session"
29 attrs="{'invisible' : [('pos_state', 'not in', ('closing_control',))]}"
32 <button name="open_session_cb" type="object" string="New Session"
33 attrs="{'invisible' : ['|', ('pos_state', '!=', False),('pos_config_id','=',False)]}"
37 <div attrs="{'invisible' : ['|', ('pos_state', '!=', False),('pos_config_id','=',False)]}" class="oe_view_nocontent">
38 <p class="oe_view_nocontent_create">
39 Click to start a session.
41 You will first have to control your cash amount in your cash register.
42 Then you will be able to open the session and start selling with the touchscreen
51 <record id="action_pos_session_opening" model="ir.actions.act_window">
52 <field name="name">Your Session</field>
53 <field name="type">ir.actions.act_window</field>
54 <field name="res_model">pos.session.opening</field>
55 <field name="view_type">form</field>
56 <field name="view_mode">form</field>
57 <field name="target">inline</field>