[MERGE] Fix partial picking, set unavailable products to zero, contribution by Sebastien LANGE (Syleam)
bzr revid: mat@openerp.com-20130521154537-skpw1sjnxrb6wfg8
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 in ('assigned','draft','confirmed') else 0,
|
||||
'quantity' : move.product_qty if move.state == 'assigned' 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