[IMP] comment for later use
authorFabien Pinckaers <fp@tinyerp.com>
Tue, 18 Jan 2011 13:12:47 +0000 (14:12 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Tue, 18 Jan 2011 13:12:47 +0000 (14:12 +0100)
bzr revid: fp@tinyerp.com-20110118131247-5pe69he7962q64p9

bin/osv/orm.py

index 8071269..e862f2d 100644 (file)
@@ -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)])