添加功能

This commit is contained in:
李鹏宇
2026-08-13 10:39:08 +08:00
parent da42c3d2a7
commit 017389ab0a
@@ -442,7 +442,7 @@ class SoongWorkflowCommentWizard(models.TransientModel):
has_comment = bool(self.comment and self.comment.strip())
if not has_comment_note and not has_comment:
raise UserError('请填写备注')
if not self.employee_ids:
if not self.employee_ids and self.trans_link_id:
raise UserError("必须有转交人员")
self_node_id = record_id.workflow_id.node_ids.search(
[('name', '=', record_id.state), ('workflow_id', '=', record_id.workflow_id.id)])