Commit 5b1565ac authored by wenjie.zheng's avatar wenjie.zheng

ERP5Type: Change structure to avoid Workflow error.

parent a8a6a2fe
...@@ -418,10 +418,10 @@ class ERP5TypeInformation(XMLObject, ...@@ -418,10 +418,10 @@ class ERP5TypeInformation(XMLObject,
workflow.notifyCreated(ob) workflow.notifyCreated(ob)
### Project WORKFLOW5 , WENJIE , 2014 ### ### Project WORKFLOW5 , WENJIE , 2014 ###
# if workflow_module is not None:
workflow_module = portal.getDefaultModule(portal_type="Workflow")
# How to use accessor to redefine workflow_list??? # How to use accessor to redefine workflow_list???
for workflow5 in self.getTypeWorkflowList(): for workflow5 in self.getTypeWorkflowList():
workflow_module = portal.getDefaultModule(portal_type="Workflow")
workflow5 = workflow_module._getOb(workflow5) workflow5 = workflow_module._getOb(workflow5)
workflow5.initializeDocument(ob) workflow5.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