diff options
| author | Luis González <lgonzalez@vauxoo.com> | 2020-05-31 01:30:16 +0000 |
|---|---|---|
| committer | Luis González <lgonzalez@vauxoo.com> | 2020-10-12 07:45:11 +0000 |
| commit | 3c823390beed5f5cfc2e7bb03a65f2775c0be72e (patch) | |
| tree | c982a2c0568a511746a45e68bffa44e104b0bcaf /odoo | |
| parent | ea798c07d31fd186af4bf851966f791a96cb13fd (diff) | |
[FIX] tools/safe_eval: Add missing builtin `sorted`
Before this commit, the function `sorted` wasn't available on
`safe_eval`, even though it's a Python built-in, which mades it
unavailable for Python-code evaluation, e.g. server actions.
After this commit, the above function is now accessible.
closes odoo/odoo#59711
X-original-commit: a725c8927963848c3f8ada3b71897a54b740cce6
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'odoo')
| -rw-r--r-- | odoo/tools/safe_eval.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/tools/safe_eval.py b/odoo/tools/safe_eval.py index 828b42063cc..83741408eb3 100644 --- a/odoo/tools/safe_eval.py +++ b/odoo/tools/safe_eval.py @@ -258,6 +258,7 @@ _BUILTINS = { 'sum': sum, 'reduce': functools.reduce, 'filter': filter, + 'sorted': sorted, 'round': round, 'len': len, 'repr': repr, |
