openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27532
[Bug 1298469] Re: hr_payroll/salary_rule/python code/result_rate persists
OpenERP support anwser:
The issue has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-605859-pna/+merge/213405 with rev-id: pna@xxxxxxxxxxx-20140331050122-kqfw152vcippdl52
Rev-no: 9942
** Changed in: openobject-addons
Status: New => Fix Released
--
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/1298469
Title:
hr_payroll/salary_rule/python code/result_rate persists
Status in OpenERP Addons (modules):
Fix Released
Bug description:
When creating a salary rule with python code.
If result_rate is filled, the value persists for all other rules computed with python code.
I noticed in the code that result_rate isn't initialized unlike result and result_qty in the hr_payroll.py source.
lines 586 to 589 of the hr_payroll.py :
key = rule.code + '-' + str(contract.id)
localdict['result'] = None
localdict['result_qty'] = 1.0
#check if the rule can be applied
there no initialization of result_rate.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1298469/+subscriptions
References