[FIX] orm: convert ids into int in read_flat method to avoid regresstion if id in string object

bzr revid: hmo@tinyerp.com-20091210103116-kyzu9t6bcbwekiqh
This commit is contained in:
Harry (Open ERP) 2009-12-10 16:01:16 +05:30
parent fddf4dbf8a
commit 946684553c
1 changed files with 1 additions and 1 deletions

View File

@ -2351,7 +2351,7 @@ class orm(orm_template):
context = {}
if not ids:
return []
ids = map(lambda x:int(x), ids)
if fields_to_read == None:
fields_to_read = self._columns.keys()