[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.
This commit is contained in:
parent
f207ef5fae
commit
3a32021122
|
@ -5757,6 +5757,7 @@ class BaseModel(object):
|
||||||
name: rec[name] for name in names
|
name: rec[name] for name in names
|
||||||
})
|
})
|
||||||
with rec.env.norecompute():
|
with rec.env.norecompute():
|
||||||
|
map(rec._recompute_done, field.computed_fields)
|
||||||
rec._write(values)
|
rec._write(values)
|
||||||
except MissingError:
|
except MissingError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue