odoo/upgrade-util#265

Created by Upgrade, Christophe Simonis (chs)

Blocked

label
odoo-dev:master-safe-eval-refactor-globals-roan
head
af3d7ff06e0d35ee0e447b90a19ff4b89626ba95
odoo/odoo odoo/enterprise odoo/upgrade-util
master #206846 missing statuses missing r+ #83818 missing statuses missing r+ #265 missing r+

[IMP] adapt code to new simplified `safe_eval` API

safe_eval loose the nocopy option. As we rely on it when evaluating expression, we need to reimplement safe_eval to do the evaluation using the SelfPrintEvalContext.

See odoo/odoo#206846
See odoo/enterprise#83818