[IMP] safe_eval: do not log exceptions, when re-raising a new exception, make the...
[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                     <field name="show_config" invisible="1" />
10                     <separator string="Select your Point of Sale" colspan="4" attrs="{'invisible' : [('show_config', '=', False)]}" />
11                     <group attrs="{'invisible' : [('show_config', '=', False)]}">
12                         <field name="pos_config_id" on_change="on_change_config(pos_config_id)"
13                             widget="selection" domain="[('state','=','active')]"
14                             class="oe_inline"/>
15                         <field name="pos_state" invisible="1" />
16                     </group>
17                     <field name="pos_session_id" invisible="1"/>
18                     <button name="open_ui" type="object" string="Start Selling" 
19                         attrs="{'invisible' : [('pos_state', 'not in', ('opened',))]}" 
20                         class="oe_highlight"
21                     />
22                     <button name="open_existing_session_cb" type="object" string="Open Session" 
23                         attrs="{'invisible' : [('pos_state', 'not in', ('opening_control',))]}" 
24                         class="oe_highlight"
25                     />
26                     <button name="open_existing_session_cb_close" type="object" string="Close Session" 
27                         attrs="{'invisible' : [('pos_state', 'not in', ('opened',))]}" 
28                     />
29                     <button name="open_existing_session_cb" type="object" string="Close Session" 
30                         attrs="{'invisible' : [('pos_state', 'not in', ('closing_control',))]}" 
31                         class="oe_highlight"
32                     />
33                     <button name="open_session_cb" type="object" string="New Session" 
34                         attrs="{'invisible' : ['|', ('pos_state', '!=', False),('pos_config_id','=',False)]}"
35                         class="oe_highlight"
36                     />
37
38                     <div attrs="{'invisible' : ['|', ('pos_state', '!=', False),('pos_config_id','=',False)]}" class="oe_view_nocontent">
39                         <p class="oe_view_nocontent_create">
40                           Click to start a session.
41                         </p><p>
42                           You may have to control your cash amount in your cash register, before
43                           being able to start selling through the touchscreen interface.
44                         </p>
45                     </div>
46                     <div attrs="{'invisible' : [('pos_state', '!=', 'opened')]}" class="oe_view_nocontent">
47                         <p class="oe_view_nocontent_create">
48                             Click to continue the session.
49                         </p>
50                         <p>
51                             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/>
52                             You can continue sales from the touchscreen interface by clicking on "Start Selling" or close the cash register session.
53                         </p>
54                     </div>
55
56                 </form>
57             </field>
58         </record>
59
60         <record id="action_pos_session_opening" model="ir.actions.act_window">
61             <field name="name">Your Session</field>
62             <field name="type">ir.actions.act_window</field>
63             <field name="res_model">pos.session.opening</field>
64             <field name="view_type">form</field>
65             <field name="view_mode">form</field>
66             <field name="target">inline</field>
67         </record>
68     </data>
69 </openerp>