[IMP] fields: optimize invalidation of fields in draft mode

This commit is contained in:
Raphael Collet
2015-09-14 13:26:54 +02:00
parent 04ae8023f6
commit 7e9e747a0c
+1 -1
View File
@@ -985,7 +985,7 @@ class Field(object):
computed = target.browse(env.computed[field])
if path == 'id':
target = records - computed
elif path:
elif path and env.in_onchange:
target = (target.browse(env.cache[field]) - computed).filtered(
lambda rec: rec._mapped_cache(path) & records
)