From 9da1214de3a36f6909fe4dad0074f6fbd87efaea Mon Sep 17 00:00:00 2001 From: JoshuaJan Date: Mon, 7 Jul 2014 17:30:25 +0800 Subject: [PATCH] Update holidays_summary_report.py Add context to search method --- addons/hr_holidays/report/holidays_summary_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/report/holidays_summary_report.py b/addons/hr_holidays/report/holidays_summary_report.py index 3f3a93d..cf29e3a 100644 --- a/addons/hr_holidays/report/holidays_summary_report.py +++ b/addons/hr_holidays/report/holidays_summary_report.py @@ -223,7 +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) - emp_ids = obj_emp.search(cr, uid, [('department_id', '=', id)]) + emp_ids = obj_emp.search(cr, uid, [('department_id', '=', id)], context) if emp_ids==[]: continue dept_done=0 -- 1.7.10.4