[FIX] stock: picking assignation now accept draft picking as well. This is hardly needed because picking state is based on stock.move state, and at the time of picking creation from a PO, we won't confirm the stock.move one by one (so the picking state stays draft untill all moves are confirmed)
bzr revid: qdp-launchpad@openerp.com-20131018122034-fpj8sgi4sh1n7vsw
This commit is contained in:
@@ -1591,7 +1591,7 @@ class stock_move(osv.osv):
|
||||
('group_id', '=', group),
|
||||
('location_id', '=', move.location_id.id),
|
||||
('location_dest_id', '=', move.location_dest_id.id),
|
||||
('state', 'in', ['confirmed', 'waiting'])], context=context)
|
||||
('state', 'in', ['draft', 'confirmed', 'waiting'])], context=context)
|
||||
if picks:
|
||||
pick = picks[0]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user