[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user