diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index 4265400df8c..cd0d86457d9 100755 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -50,8 +50,11 @@ class hr_holidays_status(osv.osv): return res def _user_left_days(self, cr, uid, ids, name, args, context={}): - res = {} return_false = False + employee_id = False + res = {} + for id in ids: + res[id] = {}.fromkeys(name, 0) if context and context.has_key('employee_id'): if not context['employee_id']: return_false = True