From 3f18729893da7b2f33b64cf8f20aa36f6eb28a1c Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 18 Jan 2011 14:12:47 +0100 Subject: [PATCH] [IMP] comment for later use bzr revid: fp@tinyerp.com-20110118131247-5pe69he7962q64p9 --- bin/osv/orm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 80712693153..e862f2d282e 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -203,6 +203,8 @@ class browse_record(object): # read the results field_names = map(lambda x: x[0], fields_to_fetch) field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write") + + # TODO: improve this, very slow for reports if self._fields_process: lang = self._context.get('lang', 'en_US') or 'en_US' lang_obj_ids = self.pool.get('res.lang').search(self._cr, self._uid, [('code', '=', lang)])