[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user