Commit fc4df4b6 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: set comment in the event workflow history

parent 744880f4
......@@ -52,13 +52,13 @@ if not keep_draft:
if direction == 'incoming':
# Support event_workflow and event_simulation_workflow
if portal.portal_workflow.isTransitionPossible(event, 'receive'):
event.receive()
event.receive(comment=comment)
if portal.portal_workflow.isTransitionPossible(event, 'stop'):
event.stop()
event.stop(comment=comment)
else:
event.plan()
event.start()
event.stop()
event.deliver()
event.plan(comment=comment)
event.start(comment=comment)
event.stop(comment=comment)
event.deliver(comment=comment)
return event
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>title, direction, portal_type, resource, text_content, content_type, notification_message=None, substitution_method_parameter_dict=None, keep_draft=False, source=None, destination=None, language=None, **kw</string> </value>
<value> <string>title, direction, portal_type, resource, text_content, content_type, notification_message=None, substitution_method_parameter_dict=None, keep_draft=False, source=None, destination=None, language=None, comment=None, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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