[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:
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user