From ceb222bb9485905117db40761873859e55e6a1e4 Mon Sep 17 00:00:00 2001 From: "Hardik Ansodariy (OpenERP)" Date: Tue, 19 Jul 2011 16:49:18 +0530 Subject: [PATCH] [IMP]:stop opening of inventory form while changing of product stock bzr revid: han@tinyerp.com-20110719111918-u6nza3n740csvp2g --- addons/stock/wizard/stock_change_product_qty.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/addons/stock/wizard/stock_change_product_qty.py b/addons/stock/wizard/stock_change_product_qty.py index 83814e71069..f12eabd39e8 100644 --- a/addons/stock/wizard/stock_change_product_qty.py +++ b/addons/stock/wizard/stock_change_product_qty.py @@ -101,15 +101,7 @@ class stock_change_product_qty(osv.osv_memory): inventry_obj.action_confirm(cr, uid, [inventory_id], context=context) inventry_obj.action_done(cr, uid, [inventory_id], context=context) - return { - 'domain': "[('id','=', %s)]" % (inventory_id), - 'name' : _('Physical Inventories'), - 'view_type': 'form', - 'view_mode': 'tree,form', - 'res_model': 'stock.inventory', - 'context': context, - 'type': 'ir.actions.act_window', - } + return {} stock_change_product_qty()