[FIX] mrp_operations: use list instead of record set for o2m
In v7, accessing a o2m returned a list of browse record while it returns a recordset in v8. The method _move_pass expects a list so a manual conversion is required. Fixes #1787
This commit is contained in:
parent
24df6dc8b2
commit
356be5f077
|
@ -289,7 +289,7 @@ class mrp_production(osv.osv):
|
|||
for po in self.browse(cr, uid, ids, context=context):
|
||||
if po.allow_reorder:
|
||||
continue
|
||||
todo = po.move_lines
|
||||
todo = list(po.move_lines)
|
||||
dt = datetime.strptime(po.date_start,'%Y-%m-%d %H:%M:%S')
|
||||
while todo:
|
||||
l = todo.pop(0)
|
||||
|
|
Loading…
Reference in New Issue