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

ERP5Type: Test the existance of workflow_module

parent 5b1565ac
......@@ -419,11 +419,12 @@ class ERP5TypeInformation(XMLObject,
### Project WORKFLOW5 , WENJIE , 2014 ###
# How to use accessor to redefine workflow_list???
for workflow5 in self.getTypeWorkflowList():
workflow_module = portal.getDefaultModule(portal_type="Workflow")
workflow5 = workflow_module._getOb(workflow5)
workflow5.initializeDocument(ob)
if workflow_module is not None:
workflow5 = workflow_module._getOb(workflow5)
workflow5.initializeDocument(ob)
if not temp_object:
init_script = self.getTypeInitScriptId()
......
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