Commit 8e6d8d06 authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_crm: no need to check twice the object portal type

parent 4892bbe1
......@@ -5,6 +5,5 @@ document = context.getAggregateValue(portal_type="Instance Tree")
if document is None:
return
if document.getPortalType() == "Instance Tree":
if document.getSlapState() == "destroy_requested":
if document.getSlapState() == "destroy_requested":
return context.SupportRequest_updateMonitoringDestroyRequestedState()
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