[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:
parent
fddf4dbf8a
commit
946684553c
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue