[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:
Quentin (OpenERP)
2013-10-18 14:20:34 +02:00
parent 829ccdbf9a
commit 1df2d9e4db
+1 -1
View File
@@ -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: