[IMP] fields: add missing case for invalidating fields, when path is None

This commit is contained in:
Raphael Collet 2014-07-08 15:47:44 +02:00
parent 2398f480cd
commit b05cf32b8f
1 changed files with 3 additions and 3 deletions

View File

@ -833,9 +833,9 @@ class Field(object):
if path == 'id':
target = records - computed
else:
for record in target.browse(env.cache[field]) - computed:
if record._mapped_cache(path) & records:
target += record
target = target.browse(env.cache[field]) - computed
if path:
target = target.filtered(lambda rec: rec._mapped_cache(path) & records)
if target:
spec.append((field, target._ids))