添加功能

This commit is contained in:
李鹏宇
2026-04-09 14:58:26 +08:00
parent 65b0241be6
commit 910892a94f
@@ -200,6 +200,7 @@ class SoongWorkflowCommentWizard(models.TransientModel):
continue
record_id = self.env[record.res_model].browse(record.res_id) if record.res_model and record.res_id else None
for link in record.trans_link_id:
employee_user_role_ids = self.env['hr.employee']
if link.name == '印章管理员':
stamp_types = record_id.type_stamp_ids
if stamp_types:
@@ -216,8 +217,9 @@ class SoongWorkflowCommentWizard(models.TransientModel):
node = workflow_id.node_ids.search([
('name', '=', link.name),
('workflow_id', '=', workflow_id.id)
])
record.approval_concatenation = node.approval_concatenation
], limit=1)
if node:
record.approval_concatenation = node.approval_concatenation
record.employee_trans_domain_ids = employee_user_role_ids
record.employee_ids1 = employee_user_role_ids
workflow_id = link.node_button_id.workflow_id