[IMP] models: iterating over record._cache also returns log_access fields

This commit is contained in:
Raphael Collet 2014-07-09 15:34:51 +02:00
parent 643be98fcf
commit 836245564a
1 changed files with 1 additions and 2 deletions

View File

@ -5675,8 +5675,7 @@ class RecordCache(MutableMapping):
cache, id = self._recs.env.cache, self._recs.id
dummy = SpecialValue(None)
for name, field in self._recs._fields.iteritems():
if name not in MAGIC_COLUMNS and \
not isinstance(cache[field].get(id, dummy), SpecialValue):
if name != 'id' and not isinstance(cache[field].get(id, dummy), SpecialValue):
yield name
def __len__(self):