[MERGE] OPW 50627 Issue with act_window
[odoo/odoo.git] / addons / stock / stock_view.xml
index 1066f67..f9b3379 100644 (file)
             src_model="stock.location"/>
 
         <act_window
-            context="{'search_default_done': 1,'search_default_product_id': [active_id]}"
+            context="{'search_default_done': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
             id="act_product_stock_move_open"
             name="Stock Moves"
             res_model="stock.move"
             src_model="stock.move"/>
 
         <act_window
-            context="{'search_default_future': 1,'search_default_product_id': [active_id]}"
+            context="{'search_default_future': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
             domain="[('state','in',('waiting','confirmed','assigned'))]"
             id="act_product_stock_move_futur_open"
             name="Future Stock Moves"