[view] -invoice button in pos order
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 2 Jan 2014 09:36:56 +0000 (10:36 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 2 Jan 2014 09:36:56 +0000 (10:36 +0100)
view/point_of_sale.xml

index 25906e5..07eac13 100644 (file)
@@ -6,6 +6,9 @@
             <field name="model">pos.order</field>
             <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
             <field name="arch" type="xml">
+                <xpath expr="//button[@name='action_invoice']" position="attributes">
+                    <attribute name="invisible">1</attribute>
+                </xpath>
                 <xpath expr="//field[@name='partner_id']" position="replace">
                     <field name="partner_id" on_change="onchange_partner_id(partner_id, context)" context="{'search_default_customer': 1, 'form_view_ref': 'bikecoop.view_bikecoop_members_form'}" attrs="{'readonly': [('state','=', 'invoiced')]}"/>
                 </xpath>