From 8438a27a427cd6aa97ade536716322e9044a79b4 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: Wed, 14 Jan 2026 15:19:04 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soong_workflow/models/soong_workflow_mixin.py b/soong_workflow/models/soong_workflow_mixin.py index 262a98fc7..c0ae4fced 100644 --- a/soong_workflow/models/soong_workflow_mixin.py +++ b/soong_workflow/models/soong_workflow_mixin.py @@ -114,7 +114,7 @@ class SoongWorkflowMixin(models.AbstractModel): elif hasattr(self, 'users_id') and self.users_id: query_user_id = self.users_id.id else: - query_user_id = current_user_id + query_user_id = self.env.user.id if self.log_ids: if query_user_id == current_user_id and self.work_end and self.log_ids[-1].approval_state in ['0', '1']: self.is_active = True @@ -351,7 +351,7 @@ class SoongWorkflowMixin(models.AbstractModel): state = '询价' self_state = state_list.index(state) # 当前节点 - if btn_rec.name != '结束': + if btn_rec.name != ['结束', '归档']: current_node = node_list[state_list.index(state)] self.env['trans.link'].search([]).unlink() # 退回节点根据日志进行判断