From 0f42beb105569232cae71f21a5fca22ca73720ec Mon Sep 17 00:00:00 2001 From: "PSI(Openerp)" <> Date: Mon, 2 Aug 2010 16:01:53 +0530 Subject: [PATCH] [FIX] hr_holidays: if there is not employee on allocation request bzr revid: mra@mra-laptop-20100802103153-q98sm13e63d5hus3 --- addons/hr_holidays/hr_holidays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index 48ab3432b52..4c27c2f7767 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -90,7 +90,7 @@ class hr_holidays_status(osv.osv): if employee_id: res = self.get_days(cr, uid, ids, employee_id, return_false, context=context) else: - res = dict.fromkeys(ids, {name: 0}) + res = dict.fromkeys(ids, {'leaves_taken': 0, 'remaining_leaves': 0, 'max_leaves': 0}) return res # To do: we can add remaining_leaves_category field to display remaining leaves for particular type