添加功能

This commit is contained in:
李鹏宇
2026-09-01 15:32:20 +08:00
parent a44184863d
commit 55ffaa964e
@@ -678,11 +678,11 @@ class SoongWorkflowRecord(models.Model):
user_all_role_ids = user_employee.user_role_id.ids + user_employee.user_role_ids.ids
# 本部门逻辑(仅支持部门查询的流程)
active_department = user_employee.department_id
active_department = user_employee.department_id + user_employee.department_ids
department_ids = []
if active_department:
department_ids = self.env['hr.department'].search([
('id', 'child_of', active_department.id)
('id', 'child_of', active_department.ids)
]).ids
# 支持部门查询 + 本部门
dept_domain = [