From 09600a9969e84fd59d005b040fc13353a665f96f Mon Sep 17 00:00:00 2001 From: "Pinakin Nayi (OpenERP)" Date: Mon, 31 Mar 2014 10:31:22 +0530 Subject: [PATCH] [FIX]hr_payroll : initialize result_rate in localdict to avoid next execution problem bzr revid: pna@tinyerp.com-20140331050122-kqfw152vcippdl52 --- addons/hr_payroll/hr_payroll.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py index f944e8b1362..cc94ac4d5db 100644 --- a/addons/hr_payroll/hr_payroll.py +++ b/addons/hr_payroll/hr_payroll.py @@ -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