-
- Downloads
[FIX] core: update cache on `parent_path` when updated
Purpose ======= The parent_path is invalidated from cache when computing it from scratch (with method `_parent_store_compute`) but not when it is recomputed (method `_parent_store_update`). The issue is that a computed field depending on 'parent_path' won't receive the updated value using the cache, and could lead to inconsistencies if the developer is not aware of that. Specification ============= On `_parent_store_update`, set the new value of 'parent_path' in the cache before marking the records as modified. task-2766452 closes odoo/odoo#84738 X-original-commit: b07605bd Signed-off-by:Raphael Collet <rco@odoo.com> Signed-off-by:
Rémy Voet <ryv@odoo.com> Co-authored-by:
Rémy Voet <ryv@odoo.com>
Showing
- odoo/addons/test_new_api/models/test_new_api.py 6 additions, 0 deletionsodoo/addons/test_new_api/models/test_new_api.py
- odoo/addons/test_new_api/tests/test_new_fields.py 18 additions, 0 deletionsodoo/addons/test_new_api/tests/test_new_fields.py
- odoo/models.py 7 additions, 3 deletionsodoo/models.py
Loading
Please register or sign in to comment