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):