Commit 085f83fd authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Adjust Monitor State if the computer is in closed allocation scope

parent 80508f7b
......@@ -10,6 +10,10 @@ if portal.ERP5Site_isSupportRequestCreationClosed():
if context.getMonitorScope() == "disabled":
return
if context.getAllocationScope("open").startswith("close"):
context.setMonitorScope("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