[FIX] hr_holidays: if there is not employee on allocation request

bzr revid: mra@mra-laptop-20100802103153-q98sm13e63d5hus3
This commit is contained in:
PSI(Openerp)
2010-08-02 16:01:53 +05:30
committed by Mustufa Rangwala
parent 92bb132404
commit 0f42beb105
+1 -1
View File
@@ -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