From 0274397d4ad0911b52659247dfd7362421697a56 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 1 Apr 2014 14:28:54 +0200 Subject: [PATCH] [FIX] stock: reserved quantity computation error bzr revid: qdp-launchpad@openerp.com-20140401122854-gpl2uez5xt09gyfe --- addons/stock/stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 8d5034a54b5..b492496243e 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2124,6 +2124,7 @@ class stock_move(osv.osv): quants = quant_obj.quants_get_prefered_domain(cr, uid, ops.location_id, move.product_id, qty, domain=domain, prefered_domain=[], fallback_domain=[], restrict_lot_id=move.restrict_lot_id.id, restrict_partner_id=move.restrict_partner_id.id, context=context) quant_obj.quants_reserve(cr, uid, quants, move, record, context=context) for move in todo_moves: + move.refresh() #then if the move isn't totally assigned, try to find quants without any specific domain if move.state != 'assigned': qty_already_assigned = move.reserved_availability