From a15007d0f9ea32e19eb38921869646dd791890a9 Mon Sep 17 00:00:00 2001 From: "Atik Agewan (OpenERP)" Date: Tue, 13 Sep 2011 12:43:37 +0530 Subject: [PATCH] [FIX] STOCK:When import Physical Inventories it calculate currect Qty in Default UOM lp bug: https://launchpad.net/bugs/845333 fixed bzr revid: aag@tinyerp.com-20110913071337-4h449mug0uar72j5 --- addons/stock/wizard/stock_fill_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_fill_inventory.py b/addons/stock/wizard/stock_fill_inventory.py index ee23c58adb0..7f1b6a497ea 100644 --- a/addons/stock/wizard/stock_fill_inventory.py +++ b/addons/stock/wizard/stock_fill_inventory.py @@ -96,7 +96,7 @@ class stock_fill_inventory(osv.osv_memory): for move in move_obj.browse(cr, uid, move_ids, context=context): lot_id = move.prodlot_id.id prod_id = move.product_id.id - qty = move.product_qty + qty = move.product_qty * (move.product_id.uom_id.factor / move.product_uom.factor) if datas.get((prod_id, lot_id)): qty += datas[(prod_id, lot_id)]['product_qty']