议题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user