From 05715338294f0a17b4cf0cb47a1d17c6ab132209 Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck Date: Tue, 17 Apr 2012 15:59:50 +0200 Subject: [PATCH] [FIX] partial_picking was testing move.state for 'new' which is not a valid state, the correct state is 'draft' bzr revid: nh@agaplan.eu-20120417135950-7eus9wsq21dvjnft --- addons/stock/wizard/stock_partial_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_partial_picking.py b/addons/stock/wizard/stock_partial_picking.py index 6f815413497..004ab38b22c 100644 --- a/addons/stock/wizard/stock_partial_picking.py +++ b/addons/stock/wizard/stock_partial_picking.py @@ -111,7 +111,7 @@ class stock_partial_picking(osv.osv_memory): def _partial_move_for(self, cr, uid, move): partial_move = { 'product_id' : move.product_id.id, - 'quantity' : move.state in ('assigned','new') and move.product_qty or 0, + 'quantity' : move.state in ('assigned','draft') and move.product_qty or 0, 'product_uom' : move.product_uom.id, 'prodlot_id' : move.prodlot_id.id, 'move_id' : move.id,