Skip to content
Snippets Groups Projects
Commit 8896febf authored by Mustufa Rangwala's avatar Mustufa Rangwala
Browse files

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

bzr revid: mra@tinyerp.com-20100416130503-eldr1mqv6mt9kpdf
parent 2fff6616
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment