Commit 200c3d21 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Skip to check if Monitor is disabled

parent e28916c9
......@@ -7,6 +7,10 @@ if portal.ERP5Site_isSupportRequestCreationClosed():
# Stop ticket creation
return
if context.getMonitorScope() == "disabled":
return
software_installation_list = portal.portal_catalog(
portal_type='Software Installation',
default_aggregate_uid=context.getUid(),
......
......@@ -7,6 +7,9 @@ if portal.ERP5Site_isSupportRequestCreationClosed():
# Stop ticket creation
return
if context.getMonitorScope() == "disabled":
return
reference = context.getReference()
computer_title = context.getTitle()
ticket_title = "[MONITORING] Lost contact with computer %s" % reference
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment