2012-05-10 10:35:43 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<openerp >
<data >
<record model= "ir.ui.view" id= "pos_session_opening_form_view" >
<field name= "name" > pos.session.opening.form.view</field>
<field name= "model" > pos.session.opening</field>
<field name= "arch" type= "xml" >
2014-06-12 07:09:59 +00:00
<form string= "PoS Session Opening" >
2012-08-21 15:06:12 +00:00
<field name= "show_config" invisible= "1" />
<separator string= "Select your Point of Sale" colspan= "4" attrs= "{'invisible' : [('show_config', '=', False)]}" />
<group attrs= "{'invisible' : [('show_config', '=', False)]}" >
2012-08-09 21:23:11 +00:00
<field name= "pos_config_id" on_change= "on_change_config(pos_config_id)"
2014-03-20 18:17:37 +00:00
options="{'no_create': True}" domain="[('state','=','active')]"
2012-08-09 21:23:11 +00:00
class="oe_inline"/>
2012-09-03 13:45:33 +00:00
<field name= "pos_state" invisible= "1" />
2012-05-10 10:35:43 +00:00
</group>
2012-08-09 21:23:11 +00:00
<field name= "pos_session_id" invisible= "1" />
2013-09-19 13:54:13 +00:00
<button name= "open_ui" type= "object" string= "Resume Session"
2012-08-09 21:23:11 +00:00
attrs="{'invisible' : [('pos_state', 'not in', ('opened',))]}"
class="oe_highlight"
/>
<button name= "open_existing_session_cb" type= "object" string= "Open Session"
attrs="{'invisible' : [('pos_state', 'not in', ('opening_control',))]}"
class="oe_highlight"
/>
<button name= "open_existing_session_cb_close" type= "object" string= "Close Session"
attrs="{'invisible' : [('pos_state', 'not in', ('opened',))]}"
/>
<button name= "open_existing_session_cb" type= "object" string= "Close Session"
attrs="{'invisible' : [('pos_state', 'not in', ('closing_control',))]}"
class="oe_highlight"
/>
<button name= "open_session_cb" type= "object" string= "New Session"
attrs="{'invisible' : ['|', ('pos_state', '!=', False),('pos_config_id','=',False)]}"
class="oe_highlight"
/>
<div attrs= "{'invisible' : ['|', ('pos_state', '!=', False),('pos_config_id','=',False)]}" class= "oe_view_nocontent" >
<p class= "oe_view_nocontent_create" >
Click to start a session.
</p> <p >
2012-09-12 18:21:26 +00:00
You may have to control your cash amount in your cash register, before
being able to start selling through the touchscreen interface.
2012-08-09 21:23:11 +00:00
</p>
</div>
2012-08-31 10:25:09 +00:00
<div attrs= "{'invisible' : [('pos_state', '!=', 'opened')]}" class= "oe_view_nocontent" >
<p class= "oe_view_nocontent_create" >
Click to continue the session.
</p>
<p >
2012-09-12 18:21:26 +00:00
The session <field name= "pos_session_name" class= "oe_inline" /> (<field name= "pos_session_username" class= "oe_inline" /> ) is "<b > <field name= "pos_state_str" class= "oe_inline" /> </b> ".<br />
You can continue sales from the touchscreen interface by clicking on "Start Selling" or close the cash register session.
2012-08-31 10:25:09 +00:00
</p>
</div>
2012-08-09 21:23:11 +00:00
2012-05-10 10:35:43 +00:00
</form>
</field>
</record>
<record id= "action_pos_session_opening" model= "ir.actions.act_window" >
2012-08-09 21:23:11 +00:00
<field name= "name" > Your Session</field>
2012-05-10 10:35:43 +00:00
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > pos.session.opening</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > form</field>
2012-08-09 21:23:11 +00:00
<field name= "target" > inline</field>
2012-05-10 10:35:43 +00:00
</record>
</data>
2012-05-12 22:37:43 +00:00
</openerp>