summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-12-19 14:43:58 +0000
committerRaphael Collet <rco@odoo.com>2019-12-20 09:21:38 +0000
commit2448ff2c8c914c913c81032430578732e593273c (patch)
tree4950f67848843220f3fa5ef240684cbe1f3d07dd /addons/web/static/src/js/views/basic/basic_controller.js
parent46088e3439a857b987353ef6d72443f6707d0512 (diff)
[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: 78bf4dbaa1c4adfa1dac68a4d79b87800003ac05 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions