Commit 3a320211 authored by Nicolas Seinlet's avatar Nicolas Seinlet Committed by Christophe Simonis
Browse files

[IMP] models: mark records as recomputed as soon as they are

When recomputing stored function fields, the `write` may trigger a
cache invalidation which lead to a recompute of all the recordset
values, even the ones already saved in database.
parent f207ef5f
......@@ -5757,6 +5757,7 @@ class BaseModel(object):
name: rec[name] for name in names
with rec.env.norecompute():
map(rec._recompute_done, field.computed_fields)
except MissingError:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment