[VIEW] -take in and take out money button for pos user group
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Tue, 3 Feb 2015 14:15:27 +0000 (15:15 +0100)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Tue, 3 Feb 2015 14:15:27 +0000 (15:15 +0100)
__openerp__.py
view/point_of_sale.xml [new file with mode: 0644]

index 351d83e..737e4de 100644 (file)
@@ -50,6 +50,7 @@ It installs the profile for bike co-ops to manage some features like:
         'data/products_categories.xml',
         'data/products_products.xml',
         'data/products_products_old.xml',
+        'view/point_of_sale.xml',
         'security/ir.model.access.csv',
     ],
     'installable': True,
diff --git a/view/point_of_sale.xml b/view/point_of_sale.xml
new file mode 100644 (file)
index 0000000..1a07cfe
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_pos_session_form" model="ir.ui.view">
+            <field name="name">pos.session.form.view</field>
+            <field name="model">pos.session</field>
+            <field name="inherit_id" ref="point_of_sale.view_pos_session_form"/>
+            <field name="arch" type="xml">
+                <xpath expr="//button[@name='%(point_of_sale.action_pos_box_in)d']" position="attributes">
+                    <attribute name="groups">point_of_sale.group_pos_manager</attribute>
+                </xpath>
+                <xpath expr="//button[@name='%(point_of_sale.action_pos_box_out)d']" position="attributes">
+                    <attribute name="groups">point_of_sale.group_pos_manager</attribute>
+                </xpath>
+            </field>
+        </record>
+    </data>
+</openerp>