[FIX] core: correct fields.modified_draft for triggers on other models

This commit is contained in:
Christophe Simonis
2016-05-13 17:32:00 +02:00
parent 9b2d153302
commit 820f7e11c1
+1 -1
View File
@@ -1020,7 +1020,7 @@ class Field(object):
target = records - computed
elif path and env.in_onchange:
target = (target.browse(env.cache[field]) - computed).filtered(
lambda rec: rec._mapped_cache(path) & records
lambda rec: rec if path == 'id' else rec._mapped_cache(path) & records
)
else:
target = target.browse(env.cache[field]) - computed