[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:
parent
16ce262c33
commit
09600a9969
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue