Commit bf9b3c26 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Simplify call of workflow

   Not required to do doActionFor here.
parent a52f00ce
...@@ -42,7 +42,7 @@ if (event is None) and (ticket.getSimulationState() == 'suspended'): ...@@ -42,7 +42,7 @@ if (event is None) and (ticket.getSimulationState() == 'suspended'):
text_content=text_content, text_content=text_content,
) )
portal.portal_workflow.doActionFor(event, 'start_action', send_mail=True, comment=comment) event.start(send_mail=True, comment=comment)
event.stop(comment=comment) event.stop(comment=comment)
event.deliver(comment=comment) event.deliver(comment=comment)
event.reindexObject(activate_kw={'tag': tag}) event.reindexObject(activate_kw={'tag': tag})
......
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