[FIX] tool: Function sleep not available in time library
Since this commit https://github.com/odoo/odoo/commit/06a8c5264eb6e87c29ad1d23a14e12dd45aa281c the function sleep was not available when executing python code in safe_eval opw:2858779 closes odoo/odoo#93314 X-original-commit: 7c5d76bc46f1cdad6af9f44a96b192d699a34305 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
@@ -420,7 +420,7 @@ dateutil = wrap_module(dateutil, {
|
||||
for mod in mods
|
||||
})
|
||||
json = wrap_module(__import__('json'), ['loads', 'dumps'])
|
||||
time = wrap_module(__import__('time'), ['time', 'strptime', 'strftime'])
|
||||
time = wrap_module(__import__('time'), ['time', 'strptime', 'strftime', 'sleep'])
|
||||
pytz = wrap_module(__import__('pytz'), [
|
||||
'utc', 'UTC', 'timezone',
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user