Ajay Chauhan(OpenERP) has proposed merging 
lp:~openerp-commiter/openobject-addons/trunk-search-imp-product-cha into 
lp:~openerp-dev/openobject-addons/trunk-review_all_search.

Requested reviews:
  OpenERP R&D Team (openerp-dev)

For more details, see:
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-search-imp-product-cha/+merge/110981

Hello,

here i have updated code for 'search' in view xml for 'product_*' modules.
i followed this steps:
  1) char field at top
  2) date field
  3) filter tag
  4) m2o fields

Thanks,
Ajay Chauhan
-- 
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-search-imp-product-cha/+merge/110981
Your team OpenERP R&D Team is requested to review the proposed merge of 
lp:~openerp-commiter/openobject-addons/trunk-search-imp-product-cha into 
lp:~openerp-dev/openobject-addons/trunk-review_all_search.
=== modified file 'product/pricelist_view.xml'
--- product/pricelist_view.xml	2012-06-09 15:37:41 +0000
+++ product/pricelist_view.xml	2012-06-19 09:26:24 +0000
@@ -112,9 +112,10 @@
             <field name="type">search</field>
             <field name="arch" type="xml">
                 <search string="Products Price Search">
-                    <field name="name" />
+                    <field name="name" string="Products Price" filter_domain="[('name','ilike',self)]"/>
+                    <separator orientation="vertical"/>
+                    <field name="currency_id"/>
                     <field name="type"/>
-                    <field name="currency_id"/>
                     <field name="active" />
                 </search>
             </field>

=== modified file 'product/product_view.xml'
--- product/product_view.xml	2012-06-15 04:33:00 +0000
+++ product/product_view.xml	2012-06-19 09:26:24 +0000
@@ -9,14 +9,13 @@
             <field name="type">search</field>
             <field name="arch" type="xml">
                 <search string="Product">
+                   <field name="name" string="Product" filter_domain="['|', ('name','ilike',self),('default_code','ilike',self)]"/>
+                   <separator orientation="vertical"/>
                    <filter string="Services" icon="terp-accessories-archiver" domain="[('type','=','service')]"/>
                    <filter string="Products" icon="terp-accessories-archiver" domain="['|',('type','=','product'),('type','=','consu')]" help="Both stockable and consumable products"/>
-                   <separator orientation="vertical"/>
                    <filter string="To Sell" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
                    <filter name="filter_to_purchase" string="To Purchase" icon="terp-accessories-archiver+" domain="[('purchase_ok', '=', 1)]" />
                    <separator orientation="vertical"/>
-                   <field name="name"
-                        filter_domain="['|', ('name','ilike',self),('default_code','ilike',self)]"/>
                    <field name="categ_id" widget="selection" operator="child_of"/>
                    <newline/>
                    <group expand="0" string="Context...">
@@ -300,8 +299,9 @@
             <field name="type">search</field>
             <field name="arch" type="xml">
                 <search string="Product Categories">
+                    <field name="name" string="Product Categories" filter_domain="[('name','ilike',self)]"/>
+                    <separator orientation="vertical"/>
                     <field name="parent_id"/>
-                    <field name="name"/>
                 </search>
             </field>
         </record>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to