From ee198c29abe9a56dd9876afe53ca52b2a0e1a063 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 8 Sep 2010 13:36:22 +0200 Subject: [PATCH] [FIX] stock: properly handle child locations during inventory import bzr revid: odo@openerp.com-20100908113622-csl1mcogawrkeee2 --- 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 e133a9fc879..bc7d0453091 100644 --- a/addons/stock/wizard/stock_fill_inventory.py +++ b/addons/stock/wizard/stock_fill_inventory.py @@ -64,7 +64,7 @@ class stock_fill_inventory(osv.osv_memory): for product_id in res.keys(): prod = product_obj.browse(cr, uid, [product_id])[0] uom = prod.uom_id.id - context.update({'uom': uom}) + context.update(uom=uom, compute_child=False) amount = stock_location_obj._product_get(cr, uid, location, [product_id], context=context)[product_id]