From 0c4cc843c7c194efd827d64a36fdfa1ec0c1b7ff 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: Sat, 11 Apr 2026 17:08:10 +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 --- soong_workflow/models/soong_workflow_mixin.py | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/soong_workflow/models/soong_workflow_mixin.py b/soong_workflow/models/soong_workflow_mixin.py index 4cd94f716..1e9d6f5df 100644 --- a/soong_workflow/models/soong_workflow_mixin.py +++ b/soong_workflow/models/soong_workflow_mixin.py @@ -426,22 +426,22 @@ class SoongWorkflowMixin(models.AbstractModel): raise UserError("当前加签人员还有没有审批完成的!") # 继续正常流程 # if btn_rec.has_comment: - return self.with_context(cx)._add_comment(log_obj, btn_rec) - if btn_rec.name == '收回': - return { - 'name': '收回弹窗', - 'type': 'ir.actions.act_window', - 'view_mode': 'form', - 'res_model': 'soong.bounced.wizard', - "target": "new", - 'context': { - 'default_res_id': self.id, - "default_res_model": self._name, - } - } - else: - btn_rec.with_context(cx).log() - return btn_rec.with_context(cx).run() + return self.with_context(cx)._add_comment(log_obj, btn_rec) + # if btn_rec.name == '收回': + # return { + # 'name': '收回弹窗', + # 'type': 'ir.actions.act_window', + # 'view_mode': 'form', + # 'res_model': 'soong.bounced.wizard', + # "target": "new", + # 'context': { + # 'default_res_id': self.id, + # "default_res_model": self._name, + # } + # } + # else: + # btn_rec.with_context(cx).log() + # return btn_rec.with_context(cx).run() def _add_comment(self, logs, btn_rec): trans_link_ids = []