From 4187ebd9be2e9e76b31dfbb4b9da800e1196a1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 20 Apr 2026 18:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_issue/models/issue_library.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yuthon_issue/models/issue_library.py b/yuthon_issue/models/issue_library.py index 5ac68edff..5b482a68a 100644 --- a/yuthon_issue/models/issue_library.py +++ b/yuthon_issue/models/issue_library.py @@ -601,6 +601,7 @@ 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) ])