-
- Downloads
[FIX] product : variant of other company
Steps to reproduce:
- install sale_management
- enable variant in the setting of sales
- create a second company
- create a product with at least a variant and set the company
to the active one
- switch to the second company
- create another product and select the same variant
- error on creation
Cause:
The stored compute is executed as sudo, therefore a value that the user
has no access may stays in the cache. In subsequent flush we might read
value from cache when computing some other fields that contain an
unreadable value for current user.
Solution:
Flush and invalidate so we don't have unaccessible value in cache in
this use case.
note: this is not happening in 14.0 and over
opw-2898457
opw-2950290
closes odoo/odoo#96023
Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
Loading
Please register or sign in to comment