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

slapos_crm: Don't display cancelled Upgrade decisions

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