[FIX]hr_payroll : initialize result_rate in localdict to avoid next execution problem

bzr revid: pna@tinyerp.com-20140331050122-kqfw152vcippdl52
This commit is contained in:
Pinakin Nayi (OpenERP) 2014-03-31 10:31:22 +05:30
parent 16ce262c33
commit 09600a9969
1 changed files with 1 additions and 0 deletions

View File

@ -593,6 +593,7 @@ class hr_payslip(osv.osv):
key = rule.code + '-' + str(contract.id)
localdict['result'] = None
localdict['result_qty'] = 1.0
localdict['result_rate'] = 100
#check if the rule can be applied
if obj_rule.satisfy_condition(cr, uid, rule.id, localdict, context=context) and rule.id not in blacklist:
#compute the amount of the rule