fix_lp_673696

bzr revid: fp@tinyerp.com-20101221202418-no013141bquj5k6z
This commit is contained in:
Fabien Pinckaers 2010-12-21 21:24:18 +01:00
parent 3df9607a60
commit e15952531b
1 changed files with 1 additions and 1 deletions

View File

@ -3129,7 +3129,7 @@ class orm(orm_template):
for table in self._inherits:
col = self._inherits[table]
cols = intersect(self._inherit_fields.keys(), set(fields_to_read) - set(self._columns.keys()))
cols = [x for x in intersect(self._inherit_fields.keys(), fields_to_read) if x not in self._columns.keys()]
if not cols:
continue
res2 = self.pool.get(table).read(cr, user, [x[col] for x in res], cols, context, load)