[FIX] stock: only get first element from cursor row

This commit is contained in:
Christophe Simonis 2015-02-20 16:33:16 +01:00
parent 337487db60
commit a9ba27b79f
1 changed files with 1 additions and 1 deletions

View File

@ -2091,7 +2091,7 @@ class stock_move(osv.osv):
query += "stock_picking.group_id = %s LIMIT 1"
params += (procurement_group,)
cr.execute(query, params)
pick = cr.fetchone()
[pick] = cr.fetchone() or [None]
if not pick:
move = self.browse(cr, uid, move_ids, context=context)[0]
values = {