openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #16059
[Bug 1051550] Re: int and float missing from hr_payroll.tools.safe_eval context
Hello Justin,
Would you please provide your created salary rules which you are using
at your end with python code.Then we can investigate more on this.
Thanks and waiting for your reply!
** Changed in: openobject-addons
Status: New => Incomplete
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1051550
Title:
int and float missing from hr_payroll.tools.safe_eval context
Status in OpenERP Addons (modules):
Incomplete
Bug description:
I have attempted to implement local tax rules using a series of salary
rules, but to correctly calculate values for Australian taxes, I need
access to something that will strip cents from a calculated figure.
int() does this nicely, but it is not listed in
hr_payoll.tools.safe_eval as one of the allowed builtins. But bool,
str, tuple, dict and several others are.
Please add in all the safe but useful builtins, like int() and float()
if you insist on monkey patching eval().
This is in OpenERP 6.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1051550/+subscriptions
References