Commit a83fe71f authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: create an Event when the Subscription Request can not be validated

parent 250ef903
subscription_request = context
portal = context.getPortalObject()
def markHistory(document, comment):
portal_workflow = document.portal_workflow
last_workflow_item = portal_workflow.getInfoFor(ob=document,
name='comment', wf_id='edit_workflow')
if last_workflow_item != comment:
subscription_request.Ticket_createProjectEvent(
"Can not activate your new service: %s" % subscription_request.getAggregateTitle(),
'outgoing', 'Web Message',
portal.service_module.slapos_crm_information.getRelativeUrl(),
text_content=comment,
content_type='text/plain'
)
portal_workflow.doActionFor(document, action='edit_action', comment=comment)
item = subscription_request.getAggregateValue()
......
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