[FIX] hr_holidays: if there is employee has no user (computing hours on holiday status)

bzr revid: mra@tinyerp.com-20100416130503-eldr1mqv6mt9kpdf
This commit is contained in:
mra (Open ERP)
2010-04-16 18:35:03 +05:30
parent 2fff66168c
commit 8896febf11
+4 -1
View File
@@ -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