Skip to content
Snippets Groups Projects
Commit 6b274e44 authored by Antony Lesuisse's avatar Antony Lesuisse
Browse files

Merge pull request #946 from joshuajan/7.0_hr_holidays_report_fix

skip the inactivate employee in leaves summary
parents c0aa86b9 6c776d54
Branches
Tags
No related merge requests found
......@@ -223,9 +223,7 @@ class report_custom(report_rml):
elif data['model']=='ir.ui.menu':
for id in data['form']['depts']:
dept = obj_dept.browse(cr, uid, id, context=context)
cr.execute("""SELECT id FROM hr_employee \
WHERE department_id = %s""", (id,))
emp_ids = [x[0] for x in cr.fetchall()]
emp_ids = obj_emp.search(cr, uid, [('department_id', '=', id)], context=context)
if emp_ids==[]:
continue
dept_done=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment