← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-781656-ara into lp:openobject-addons

 

Ashvin Rathod (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-781656-ara into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #781656 in OpenERP Addons: "[PS] Opening the list of products from the product's category tree view doesn't indicate the category in the filter"
  https://bugs.launchpad.net/openobject-addons/+bug/781656

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-781656-ara/+merge/61093

Hello,

Fix; Opening the list of products from the product's category tree view doesn't indicate the category in the filter

Thanks,
ara
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-781656-ara/+merge/61093
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-781656-ara.
=== modified file 'product/product_view.xml'
--- product/product_view.xml	2011-05-02 18:46:43 +0000
+++ product/product_view.xml	2011-05-16 11:16:40 +0000
@@ -280,8 +280,7 @@
             <field name="res_model">product.product</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form</field>
-            <field name="domain">[('categ_id','child_of',[active_id])]</field>
-            <field name="context">{'categ_id':active_id}</field>
+            <field name="context">{'categ_id':active_id, 'search_default_categ_id':active_id}</field>
         </record>
         <record id="ir_product_category_open" model="ir.values">
             <field eval="'tree_but_open'" name="key2"/>


Follow ups