summaryrefslogtreecommitdiff
path: root/doc/cla
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2020-10-08 10:37:21 +0000
committerAdrian Torres <adt@odoo.com>2020-10-08 10:37:21 +0000
commit02e816877ec12471a1446ba894b5cfca309979da (patch)
tree3caf858da6452a01e3e4864becea34aa13863890 /doc/cla
parent481454e18e6cb1c5da317e12c820975a07d39411 (diff)
[FIX] base: allow custom fields to use time module
After commit 06a8c5264eb6e87c29ad1d23a14e12dd45aa281c it is no longer possible to pass bare modules to `safe_eval`'s context, however during the aforementioned commit only the wrapped datetime and dateutil modules were updated in ir_model's SAFE_EVAL_BASE context, thus the bare `time` module was still being passed (and this triggered a traceback whenever a custom computed field that used the time module was computed). The fix is simple: pass the wrapped time module to the `safe_eval` context instead of the bare one. This commit also introduces a regression test to verify that the passed modules actually work in custom fields. opw-2347711 closes odoo/odoo#59496 Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'doc/cla')
0 files changed, 0 insertions, 0 deletions