[IMP] comment for later use

bzr revid: fp@tinyerp.com-20110118131247-5pe69he7962q64p9
This commit is contained in:
Fabien Pinckaers 2011-01-18 14:12:47 +01:00
parent adf47cf279
commit 3f18729893
1 changed files with 2 additions and 0 deletions

View 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)])