From 356be5f077607b602438bf7750a5b18b06331153 Mon Sep 17 00:00:00 2001 From: Quentin THEURET Date: Mon, 18 Aug 2014 11:45:45 +0200 Subject: [PATCH] [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 --- addons/mrp_operations/mrp_operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index c14b755070d..b67f7ebf5b5 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -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)