[view] +allow search pos order by partners
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 23 Nov 2017 07:35:43 +0000 (08:35 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 23 Nov 2017 07:35:43 +0000 (08:35 +0100)
__openerp__.py
view/point_of_sale.xml

index 10830ca..ba074f8 100644 (file)
@@ -32,8 +32,9 @@ This module is to configure modules related to a bike Co-op.
 ==============================================================
 
     It installs the profile for bike co-ops to manage some features like:
-    - a form to record contact informations for bikecoop users
-    - ...
+    - a form to record contact informations for bikecoop users;
+    - allow search pos orders by partners;
+    - …
     """,
     'author': 'L\'Heureux Cyclage',
     'website': 'http://www.heureux-cyclage.org',
index b2baab1..2e79f0e 100644 (file)
                 </xpath>
             </field>
         </record>
+       <record id="view_pos_order_filter" model="ir.ui.view">
+           <field name="name">pos.order.list.select</field>
+           <field name="model">pos.order</field>
+           <field name="inherit_id" ref="point_of_sale.view_pos_order_filter"/>
+           <field name="arch" type="xml">
+               <xpath expr="//field[@name='user_id']" position="before">
+                   <field name="partner_id"/>
+               </xpath>
+           </field>
+       </record>
     </data>
 </openerp>