[REF] the openerplib should be fixed upstream.

bzr revid: florent.xicluna@gmail.com-20120119093520-92udlqrq8ufyw43s
This commit is contained in:
Florent Xicluna
2012-01-19 10:35:20 +01:00
parent 3ec4ad3201
commit b540f5ad3f
+1 -1
View File
@@ -249,7 +249,7 @@ class Model(object):
method,
args, kw)
if method == "read":
if result and isinstance(result, list) and "id" in result[0]:
if isinstance(result, list) and len(result) > 0 and "id" in result[0]:
index = {}
for r in result:
index[r['id']] = r