[view] ~partner is required in pos order
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 3 Oct 2013 14:41:13 +0000 (16:41 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 3 Oct 2013 14:41:13 +0000 (16:41 +0200)
view/pos_membership.xml

index 257a147..3a7be61 100644 (file)
                 </xpath>
             </field>
         </record>
+        <record id="view_pos_pos_form" model="ir.ui.view">
+            <field name="name">pos.order.form</field>
+            <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="//field[@name='partner_id']" position="attributes">
+                    <attribute name="required">1</attribute>
+                </xpath>
+            </field>
+        </record>
     </data>
 </openerp>