diff --git a/yuthon_issue/models/issue_library.py b/yuthon_issue/models/issue_library.py index 5b482a68a..f6789efd7 100644 --- a/yuthon_issue/models/issue_library.py +++ b/yuthon_issue/models/issue_library.py @@ -601,7 +601,6 @@ class IssueLibrary(models.Model): all_dept_ids = get_all_sub_departments(ras.department_id) target_employees = self.env['hr.employee'].search([ ('department_id', 'in', all_dept_ids), - ('department_ids', 'in', all_dept_ids), ('active', '=', True) ]) @@ -710,7 +709,6 @@ class IssueLibrary(models.Model): all_dept_ids = get_all_sub_departments(self.department_id) target_employees = self.env['hr.employee'].search([ ('department_id', 'in', all_dept_ids), - ('department_ids', 'in', all_dept_ids), ('active', '=', True) ]) target_dept_names = ['办公室', '财务部', '风控法务部', '纪检审计部', '综合办公室']