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(): ...@@ -7,6 +7,10 @@ if portal.ERP5Site_isSupportRequestCreationClosed():
# Stop ticket creation # Stop ticket creation
return return
if context.getMonitorScope() == "disabled":
return
software_installation_list = portal.portal_catalog( software_installation_list = portal.portal_catalog(
portal_type='Software Installation', portal_type='Software Installation',
default_aggregate_uid=context.getUid(), default_aggregate_uid=context.getUid(),
......
...@@ -7,6 +7,9 @@ if portal.ERP5Site_isSupportRequestCreationClosed(): ...@@ -7,6 +7,9 @@ if portal.ERP5Site_isSupportRequestCreationClosed():
# Stop ticket creation # Stop ticket creation
return return
if context.getMonitorScope() == "disabled":
return
reference = context.getReference() reference = context.getReference()
computer_title = context.getTitle() computer_title = context.getTitle()
ticket_title = "[MONITORING] Lost contact with computer %s" % reference 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