Commit 8ca0f757 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Don't display cancelled Upgrade decisions

parent 33d31f69
......@@ -24,7 +24,8 @@ if 'limit' not in kw:
result_list = []
for document in portal.portal_catalog(query=query, **kw):
if document.getPortalType() == "Upgrade Decision Line":
result_list.append(document.getParentValue())
if document.getParentValue().getSimulationState() != 'cancelled':
result_list.append(document.getParentValue())
continue
result_list.append(document)
return result_list
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