Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-918644-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #918644 in OpenERP Addons: "product category - right/left parent should 
not be shown"
  https://bugs.launchpad.net/openobject-addons/+bug/918644

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-918644-mma/+merge/89628

Hello,

        product : I Have added a search view in product category to hidden 
right,left parent field

Thanks.
MMA
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-918644-mma/+merge/89628
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-918644-mma.
=== modified file 'product/product_view.xml'
--- product/product_view.xml	2011-12-30 11:25:43 +0000
+++ product/product_view.xml	2012-01-23 07:09:24 +0000
@@ -291,13 +291,23 @@
             <field name="help">Products can be purchased and/or sold. They can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on.</field>
         </record>
 
+        <record id="product_category_search_view" model="ir.ui.view">
+            <field name="name">product.category.search</field>
+            <field name="model">product.category</field>
+            <field name="type">search</field>
+            <field name="arch" type="xml">
+                <search string="Product Categories">
+                    <field name="name"/>
+                </search>
+            </field>
+        </record>
         <record id="product_category_form_view" model="ir.ui.view">
             <field name="name">product.category.form</field>
             <field name="model">product.category</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="Product Categories">
-                    <field name="name" select="1"/>
+                    <field name="name"/>
                     <field name="parent_id"/>
                     <field name="sequence" invisible="1"/>
                     <field name="type"/>
@@ -347,6 +357,7 @@
             <field name="type">ir.actions.act_window</field>
             <field name="res_model">product.category</field>
             <field name="view_type">form</field>
+            <field name="search_view_id" ref="product_category_search_view"/>
             <field name="view_id" ref="product_category_list_view"/>
         </record>
         <menuitem action="product_category_action_form"

_______________________________________________
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