Commit ca71d318 authored by jira's avatar jira
Browse files

[ADD] logging for usage in salary.rules

parent 89dfeeda
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment