Skip to content
Snippets Groups Projects
Commit e5dbded9 authored by Laurent Desausoi's avatar Laurent Desausoi Committed by Fabien Meghazi
Browse files

[IMP] core: use inert SQL based neutralization


Before this commit the neutralize system introduced in v16 was using ORM
methods in order to change appropriate records. Although flexible, this approach
could lead to call some methods with side effects while neutralizing
(eg: overloads of write).

This patch converts the neutralize system to a safer "inert" SQL based approach
by migrating the generic method _neutralize to SQL files exposed in the
data folder.

Task id: 2961687

closes odoo/odoo#101529

Related: odoo/enterprise#31984
Signed-off-by: default avatarFabien Meghazi <fme@odoo.com>
parent 7f83e398
No related branches found
No related tags found
No related merge requests found
Showing
with 33 additions and 132 deletions
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