diff --git a/soong_workflow/wizard/soong_workflow_comment_wizard.py b/soong_workflow/wizard/soong_workflow_comment_wizard.py index 3e6ee6959..c8dc5481a 100644 --- a/soong_workflow/wizard/soong_workflow_comment_wizard.py +++ b/soong_workflow/wizard/soong_workflow_comment_wizard.py @@ -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)]) @@ -1189,7 +1189,7 @@ class SoongWorkflowCommentWizard(models.TransientModel): # 核心写入:使用删除后的最后一条经办人 self.env['soong.workflow.record'].search([('code', '=', record.code)]).write({ - "employee_ids": [(6, 0, [prev_log.done_by.employee_id.id])], + "employee_ids": [(6, 0, [prev_log.done_by.employee_ids.id])], "users_ids": [(6, 0, done_by_list)] if not has_sign_log else [(3, user_id) for user_id in done_by_list], 'soong_state': 'to_do' })