Commit 83c4ae3c authored by Jérome Perrin's avatar Jérome Perrin

NotificationTool: use event workflow instead of calling low level send

parent bff14f7e
......@@ -361,9 +361,10 @@ class NotificationTool(BaseTool):
event_list.append(event)
for event in event_list:
# XXX: this uses too low level API, instead event_workflow should be used in case
# of persistent ERP5 objects
event.send(**low_level_kw)
if event.isTempObject():
event.send(**low_level_kw)
else:
event.start(**low_level_kw)
return
# Future implementation could consist in implementing
......
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