@@ -581,13 +581,12 @@ class IssueLibrary(models.Model):
|
||||
user_company_name = current_user.company_id.name if current_user.company_id else ""
|
||||
action_id = self._context.get('from_action')
|
||||
for ras in issue_active_ids:
|
||||
if action_id == 'issue_library_action3' and ras.issue_state_party != 'will':
|
||||
raise UserError(f"议题为{ras.name}不可上会",)
|
||||
elif action_id == 'issue_library_action4' and ras.issue_state_class != 'will':
|
||||
raise UserError(f"议题为{ras.name}不可上会",)
|
||||
elif action_id == 'issue_library_action5' and ras.issue_state_boss != 'will':
|
||||
raise UserError(f"议题为{ras.name}不可上会",)
|
||||
|
||||
# if action_id == 'issue_library_action3' and ras.issue_state_party != 'will':
|
||||
# raise UserError(f"议题为{ras.name}不可上会",)
|
||||
# elif action_id == 'issue_library_action4' and ras.issue_state_class != 'will':
|
||||
# raise UserError(f"议题为{ras.name}不可上会",)
|
||||
# elif action_id == 'issue_library_action5' and ras.issue_state_boss != 'will':
|
||||
# raise UserError(f"议题为{ras.name}不可上会",)
|
||||
issue_details = []
|
||||
target_meeting_type_id = False
|
||||
meeting_priority = [
|
||||
|
||||
Reference in New Issue
Block a user