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

ERP5Type.py: clean the code.

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