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

patches/WorkflowTool.py: Workflow Tool migration now happening after install...

patches/WorkflowTool.py: Workflow Tool migration now happening after install erp5_workflow template.
parent ae01f6a2
......@@ -400,9 +400,8 @@ def generateActionList(worklist_metadata, worklist_result, portal_url):
return action_list
def WorkflowTool_isBootstrapRequired(self):
# migrate after ERP5Tool installed (portal_rules is the first item of setupLastTools
# in ERP5Site.py);
if self.getPortalObject()._getOb('portal_rules', None) is not None:
# migration requires the installation of tempalte erp5_workflow;
if self.getPortalObject().portal_types._getOb('ERP5 Workflow Tool', None) is not None:
return True
return False
......
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