Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aconcagua
hr_payroll_base_config
Commits
ca71d318
Commit
ca71d318
authored
May 10, 2022
by
jira
Browse files
[ADD] logging for usage in salary.rules
parent
89dfeeda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
models/safe_eval.py
models/safe_eval.py
+2
-1
No files found.
models/safe_eval.py
View file @
ca71d318
import
sys
import
datetime
,
calendar
import
logging
safe_eval_module
=
sys
.
modules
[
'odoo.tools.safe_eval'
]
_BUILTINS
=
safe_eval_module
.
_BUILTINS
_BUILTINS
.
update
({
'locals'
:
locals
})
_BUILTINS
.
update
({
'calendarrrhh'
:
calendar
,
'datetimerrhh'
:
datetime
})
_BUILTINS
.
update
({
'calendarrrhh'
:
calendar
,
'datetimerrhh'
:
datetime
,
'logging'
:
logging
})
#_BUILTINS.update({'calendar': calendar, 'datetime': datetime})
safe_eval_module
.
_BUILTINS
=
_BUILTINS
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment