From b65cbbb0e5979563dc0c826b859694e92571e516 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 10 Jan 2014 14:00:56 +0100 Subject: [PATCH] [FIX] stock: when receiving an incoming shipment, the default quantity should be prefilled. This fixes the issue when the picking was first confirmed and received later, stock.move have the state as confirmed (Waiting Availibility) bzr revid: mat@openerp.com-20140110130056-gjmssgxrqgr5y67y --- 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 50ddc2b88ed..ceedb682ed8 100644 --- a/addons/stock/wizard/stock_partial_picking.py +++ b/addons/stock/wizard/stock_partial_picking.py @@ -144,7 +144,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.product_qty if move.state == 'assigned' else 0, + 'quantity' : move.product_qty if move.state == 'assigned' or move.picking_id.type == 'in' else 0, 'product_uom' : move.product_uom.id, 'prodlot_id' : move.prodlot_id.id, 'move_id' : move.id,