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

WorkflowTool.py: exclude configuration workflow for the workflow conversion;...

WorkflowTool.py: exclude configuration workflow for the workflow conversion; correct the imput value type for setChainForPortalTypes.
parent d82fa2d5
......@@ -247,7 +247,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
temp_workflow_id_list = []
for dc_workflow in self.getPortalObject().portal_workflow.objectValues():
workflow_type = dc_workflow.__class__.__name__
if workflow_type in ['Workflow', 'Interaction Workflow']:
if workflow_type in ['Workflow', 'Interaction Workflow', 'Configuration Workflow']:
continue
temp_workflow = self.dc_workflow_asERP5Object(self, dc_workflow, temp_obj)
temp_workflow_list.append(temp_workflow)
......@@ -946,7 +946,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
else:
type_value.addTypeWorkflowList(wf_id)
if dc_wf_id_list != []:
self.setChainForPortalTypes((type_value.id,), tuple(dc_wf_id_list))
self.setChainForPortalTypes([type_value.id], tuple(dc_wf_id_list))
InitializeClass(WorkflowTool)
......
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