From 946684553c0d10e87b232ffdf35334e91f543012 Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Thu, 10 Dec 2009 16:01:16 +0530 Subject: [PATCH] [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 --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 0320e02ae21..280b5020704 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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()