From f47c05afea5207c84a0782cece64c02eaca88a98 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Thu, 5 Feb 2026 10:19:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_issue/models/issue_library.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/yuthon_issue/models/issue_library.py b/yuthon_issue/models/issue_library.py index fddda2aba..ac3ceb4b7 100644 --- a/yuthon_issue/models/issue_library.py +++ b/yuthon_issue/models/issue_library.py @@ -463,6 +463,13 @@ class IssueLibrary(models.Model): issue_active_ids = self.env["issue.library"].browse(self._context.get('active_ids', self._context.get('active_id', []))) current_user = self.env.user user_company_name = current_user.company_id.name if current_user.company_id else "" + for ras in issue_active_ids: + if ras.is_push_boss and ras.issue_state_boss != 'will': + raise UserError('当前状态不允许上会') + elif ras.is_push_class and ras.issue_state_class != 'will': + raise UserError('当前状态不允许上会') + elif ras.is_push_party and ras.issue_state_party != 'will': + raise UserError('当前状态不允许上会') issue_details = [] target_meeting_type_id = False