Skip to content
Snippets Groups Projects
Commit 96bfd7dd authored by Rémy Voet (ryv)'s avatar Rémy Voet (ryv)
Browse files

[IMP] core: avoid extra invalidate of compute no-store field.


`tocompute` in the `Transaction` contains store field on records to
be recomputed. No-store compute fields are directly invalidated from
the cache when a dependency changes (see `BaseModel.modified`).

In fact, `_recompute_field` was actually doing too much for nothing.
Also, it may invalidate caches of compute no-store fields for no reason
(e.g., if they are searchable). Remove the part for field compute
no-store field. And prevent `_recompute_field` callers from calling it
with no-store fields.

closes odoo/odoo#121355

Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
parent 13b656ac
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment