odoo/upgrade-util#265

Created by Upgrade, Christophe Simonis (chs)
Merged at fa6ed2abc6732bed28e7f638051281485cc39b29

Statuses:

label
odoo-dev:master-safe-eval-refactor-globals-roan
head
fc5d99ff334612e4d5e7b08b72cffb45206b495d
merged
2 months ago by Upgrade, Christophe Simonis (chs)
odoo/odoo odoo/enterprise odoo/upgrade-util
master #206846 #83818 #265

[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