Skip to content
Snippets Groups Projects
Commit 3ca56823 authored by Yannick Tivisse's avatar Yannick Tivisse Committed by Raphael Collet
Browse files

[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: default avatarRaphael Collet <rco@odoo.com>
Signed-off-by: default avatarRémy Voet <ryv@odoo.com>
Co-authored-by: default avatarRémy Voet <ryv@odoo.com>
parent 4c403cb8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment