[IMP] point_of_sale: fix some typo
[odoo/odoo.git] / addons / point_of_sale / wizard / pos_session_opening.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3     <data>
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" />
10                     <group>
11                         <field name="pos_config_id" on_change="on_change_config(pos_config_id)"
12                             widget="selection" domain="[('state','=','active')]"
13                             class="oe_inline"/>
14                         <field name="pos_state" class="oe_inline" attrs="{'invisible' : [('pos_state', '=', False)]}" />
15                     </group>
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',))]}" 
19                         class="oe_highlight"
20                     />
21                     <button name="open_existing_session_cb" type="object" string="Open Session" 
22                         attrs="{'invisible' : [('pos_state', 'not in', ('opening_control',))]}" 
23                         class="oe_highlight"
24                     />
25                     <button name="open_existing_session_cb_close" type="object" string="Close Session" 
26                         attrs="{'invisible' : [('pos_state', 'not in', ('opened',))]}" 
27                     />
28                     <button name="open_existing_session_cb" type="object" string="Close Session" 
29                         attrs="{'invisible' : [('pos_state', 'not in', ('closing_control',))]}" 
30                         class="oe_highlight"
31                     />
32                     <button name="open_session_cb" type="object" string="New Session" 
33                         attrs="{'invisible' : ['|', ('pos_state', '!=', False),('pos_config_id','=',False)]}"
34                         class="oe_highlight"
35                     />
36
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.
40                         </p><p>
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
43                           interface.
44                         </p>
45                     </div>
46
47                 </form>
48             </field>
49         </record>
50
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>
58         </record>
59     </data>
60 </openerp>