[VIEW] +readonly pos opening control
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Wed, 25 May 2022 11:13:02 +0000 (13:13 +0200)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Wed, 25 May 2022 11:13:02 +0000 (13:13 +0200)
view/point_of_sale.xml

index 78bd20b..5d756d6 100644 (file)
                 </xpath>
             </field>
         </record>
+        <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="//field[@name='opening_details_ids']" position="replace">
+                    <field name="opening_details_ids" nolabel="1" colspan="2" readonly="1">
+                        <tree string="Opening Cashbox Lines" editable="bottom">
+                            <field name="pieces" readonly="1" />
+                            <field name="number_opening" on_change="on_change_sub_opening(pieces, number_opening)" />
+                            <field name="subtotal_opening" string="Opening Subtotal" sum="Total"/>
+                        </tree>
+                    </field>
+                </xpath>
+            </field>
+        </record>
     </data>
 </openerp>