[IMP] stock: Add limit=1 in search of _picking_assign

This commit is contained in:
Moises Lopez - https://www.vauxoo.com/
2015-02-23 10:44:04 +05:30
committed by Martin Trigaux
parent 95abcbb039
commit 80c2ee2e6c
+1 -1
View File
@@ -2106,7 +2106,7 @@ class stock_move(osv.osv):
('group_id', '=', procurement_group),
('location_id', '=', location_from),
('location_dest_id', '=', location_to),
('state', 'in', ['draft', 'confirmed', 'waiting'])], context=context)
('state', 'in', ['draft', 'confirmed', 'waiting'])], limit=1, context=context)
if picks:
pick = picks[0]
else: