Commit f61e1d7d authored by wenjie.zheng's avatar wenjie.zheng

ERP5Type.py: use getWorkflowsFor to replace getWorkflowValueListFor.

parent e82cf608
......@@ -427,7 +427,7 @@ class ERP5TypeInformation(XMLObject,
# Unauthorized error on transition's condition
workflow_tool = portal.portal_workflow
if workflow_tool is not None:
for workflow in workflow_tool.getWorkflowValueListFor(ob.portal_type):
for workflow in workflow_tool.getWorkflowsFor(ob):
workflow.notifyCreated(ob)
if not temp_object:
......
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