openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27514
[Bug 1298469] [NEW] hr_payroll/salary_rule/python code/result_rate persists
Public bug reported:
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_qte 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 initiaization of result_rate.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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):
New
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_qte 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 initiaization of result_rate.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1298469/+subscriptions
Follow ups
References