Skip to content
Snippets Groups Projects
Commit 2448ff2c authored by Raphael Collet's avatar Raphael Collet
Browse files

[FIX] models: avoid neverending recomputation on missing records


Assume F and G are computed by the same method on a missing record R.
During recomputation of F on R, the compute method is called but fails
because R is missing.  Both fields are re-marked to compute (because
computation failed), then F is discarded (because R is missing).  Then
comes G's turn: G is accessed on R and the computation fails.  Both
fields are re-marked to compute (because computation failed), then G is
discarded (because R is missing).  Now F is marked again to compute: the
process never ends.

To avoid this situation, discard all fields to recompute on missing
records.

closes odoo/odoo#42234

X-original-commit: 78bf4dba
Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
parent 46088e34
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