Commit a25db37d authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ERP5Type.py: modify workflow getter since workflow_module has been merged with portal_workflow.

parent 06fa1e65
......@@ -422,7 +422,7 @@ class ERP5TypeInformation(XMLObject,
workflow.notifyCreated(ob)
for ERP5Workflow_id in self.getTypeERP5WorkflowList():
workflow_module = portal.getDefaultModule(portal_type="Workflow")
workflow_module = portal.portal_workflow
if workflow_module is not None:
ERP5Workflow = workflow_module._getOb(ERP5Workflow_id)
ERP5Workflow.initializeDocument(ob)
......
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