From 245a5ce77d785a27ead9972285876c84e655b613 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:46:14 +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 | 1 + yuthon_official/models/yuthon_sub_enterprises.py | 1 + 2 files changed, 2 insertions(+) diff --git a/yuthon_official/models/yuthon_file_processing.py b/yuthon_official/models/yuthon_file_processing.py index 61b54c1bb..b3dcaf174 100644 --- a/yuthon_official/models/yuthon_file_processing.py +++ b/yuthon_official/models/yuthon_file_processing.py @@ -114,6 +114,7 @@ class YuthonFileProcessing(models.Model): def _compute_is_display(self): current_user = self.env.user # for record in self: + record._compute_workflow() record.is_display = current_user in record.users_ids def _search_part_of_company(self, operator, value): diff --git a/yuthon_official/models/yuthon_sub_enterprises.py b/yuthon_official/models/yuthon_sub_enterprises.py index 748d0211a..6bb2f7be9 100644 --- a/yuthon_official/models/yuthon_sub_enterprises.py +++ b/yuthon_official/models/yuthon_sub_enterprises.py @@ -59,6 +59,7 @@ class YuthonSubEnterprises(models.Model): def _compute_is_display(self): current_user = self.env.user # for record in self: + record._compute_workflow() record.is_display = current_user in record.users_ids def _search_part_of_company(self, operator, value):