Commit 4106b96c authored by niv-openerp's avatar niv-openerp

[fix] potential problem in read() if some ids do not exist

parent a2b39616
......@@ -342,7 +342,7 @@ class Model(object):
index = {}
for r in result:
index[r['id']] = r
result = [index[x] for x in args[0]]
result = [index[x] for x in args[0] if x in index]
self.__logger.debug('result: %r', result)
return result
return proxy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment