Commit e05ccb31 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel: Project_createTicketWithCausality only works for monitoring

   Base_addSlapOSSupportRequest always created a ticket so no reason to invoke Project_createTicketWithCausality anyway.
parent 79620d05
......@@ -11,14 +11,20 @@ if context.getPortalType() == 'Project':
project = context
else:
project = context.getFollowUpValue()
support_request = project.Project_createTicketWithCausality(
'Support Request',
support_request = person.Entity_createTicketFromTradeCondition(
resource,
title,
description,
causality=context.getRelativeUrl(),
destination_decision=person.getRelativeUrl()
portal_type='Support Request',
source_project=project.getRelativeUrl(),
causality=context.getRelativeUrl()
)
support_request.Ticket_addSlapOSEvent(title, description, attachment=attachment, resource=resource, batch=True)
support_request.Ticket_addSlapOSEvent(
title, description,
attachment=attachment,
resource=resource,
batch=True)
return support_request.Base_redirect()
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