From 21c12dacc3eb94daabc19886e25fe978bb836ae6 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: Fri, 16 Jan 2026 16:01:54 +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 0d9ecde22..741d9c02c 100644 --- a/soong_workflow/models/soong_workflow_mixin.py +++ b/soong_workflow/models/soong_workflow_mixin.py @@ -126,14 +126,14 @@ class SoongWorkflowMixin(models.AbstractModel): def _compute_is_confirm(self): for record in self: - record.is_confirm = True + record.is_confirm = False record.is_end = True domain = [('done_by', '=', self.env.user.id), ('workflow_id', '=', record.workflow_id.id), ('res_id', '=', record.id), ('approval_state', 'in', ['0', '1']), ('name', '!=', '归档')] lg2 = record.log_ids2.search(domain) lg1 = record.log_ids.search(domain) if lg2 or lg1: - record.is_confirm = False + record.is_confirm = True if (not lg1 and not lg2) or record.is_confirm: record.is_end = False