[IMP] fields: add missing case for invalidating fields, when path is None
This commit is contained in:
parent
2398f480cd
commit
b05cf32b8f
|
@ -833,9 +833,9 @@ class Field(object):
|
||||||
if path == 'id':
|
if path == 'id':
|
||||||
target = records - computed
|
target = records - computed
|
||||||
else:
|
else:
|
||||||
for record in target.browse(env.cache[field]) - computed:
|
target = target.browse(env.cache[field]) - computed
|
||||||
if record._mapped_cache(path) & records:
|
if path:
|
||||||
target += record
|
target = target.filtered(lambda rec: rec._mapped_cache(path) & records)
|
||||||
if target:
|
if target:
|
||||||
spec.append((field, target._ids))
|
spec.append((field, target._ids))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue