[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
This commit is contained in:
Martin Trigaux 2014-01-10 14:00:56 +01:00
parent 3ed5b49e7a
commit b65cbbb0e5
1 changed files with 1 additions and 1 deletions

View File

@ -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,