From 38e7455dbf41a687f22fe9c4f41ff1eca4f89f8e 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, 21 Jan 2026 10:57:33 +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 --- yuthon_official/models/yuthon_file_processing.py | 2 +- yuthon_official/models/yuthon_sub_enterprises.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_official/models/yuthon_file_processing.py b/yuthon_official/models/yuthon_file_processing.py index b3dcaf174..c1411e0da 100644 --- a/yuthon_official/models/yuthon_file_processing.py +++ b/yuthon_official/models/yuthon_file_processing.py @@ -136,7 +136,7 @@ class YuthonFileProcessing(models.Model): record.users_ids = False record.approve_state = False record.soong_state = False - workflow = self.env['soong.workflow.record'].search( + workflow = self.env['soong.workflow.record'].sudo().search( [('code', '=', record.code)], limit=1 ) diff --git a/yuthon_official/models/yuthon_sub_enterprises.py b/yuthon_official/models/yuthon_sub_enterprises.py index 6bb2f7be9..4a6f3a970 100644 --- a/yuthon_official/models/yuthon_sub_enterprises.py +++ b/yuthon_official/models/yuthon_sub_enterprises.py @@ -81,7 +81,7 @@ class YuthonSubEnterprises(models.Model): record.users_ids = False record.approve_state = False record.soong_state = False - workflow = self.env['soong.workflow.record'].search( + workflow = self.env['soong.workflow.record'].sudo().search( [('code', '=', record.code)], limit=1 )