In fact only hide the discount field since it is used in the form.
authorSébastien Grignard <seb@amakaze.org>
Tue, 14 Jan 2014 22:57:45 +0000 (23:57 +0100)
committerSébastien Grignard <seb@amakaze.org>
Tue, 14 Jan 2014 22:57:45 +0000 (23:57 +0100)
view/ptitvelo.xml

index a5be3e5..5ebb263 100644 (file)
@@ -51,7 +51,9 @@
             <field name="model">pos.order</field>
            <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
             <field name="arch" type="xml">
-               <field name="discount"  position="replace" />
+               <field name="discount"  position="attributes">
+                 <attribute name="invisible">1</attribute>
+               </field>
                <field name="price_subtotal" position="replace" />
            </field>
        </record>