From 3ec84880c0b931e3ffaaf444bdff4db18cae69b9 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 28 Dec 2010 17:07:28 +0100 Subject: [PATCH] fix lp692891 bzr revid: fp@tinyerp.com-20101228160728-tfaia9pcqs0j4uef --- bin/osv/fields.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/osv/fields.py b/bin/osv/fields.py index c32dd5be739..1bff99511ba 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -1055,7 +1055,8 @@ class property(function): replaces[value._name][value.id] = True for rep in replaces: - replaces[rep] = dict(obj.pool.get(rep).name_get(cr, uid, replaces[rep].keys(), context=context)) + nids = obj.pool.get(rep).search(cr, uid, [('id','in',replaces[rep].keys())], context=context) + replaces[rep] = dict(obj.pool.get(rep).name_get(cr, uid, nids, context=context)) for prop in prop_name: for id in ids: