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