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

erp5_workflow: in convertWorkflow, only reassign the portal type which exist in _chains_by_type.

parent b4f08f7e
...@@ -87,8 +87,7 @@ for dc_wf in selected_wf_list:\n ...@@ -87,8 +87,7 @@ for dc_wf in selected_wf_list:\n
workflow = context.dc_workflow_asERP5Object(context, dc_wf, temp=0)\n workflow = context.dc_workflow_asERP5Object(context, dc_wf, temp=0)\n
selected_wf_id_list.append(dc_wf.id)\n selected_wf_id_list.append(dc_wf.id)\n
\n \n
\n for ptype_id in context.getChainsByType():\n
for ptype_id in context.getChainDict():\n
ptype = getattr(context.getPortalObject().portal_types, ptype_id)\n ptype = getattr(context.getPortalObject().portal_types, ptype_id)\n
# 1. clean DC workflow assignement:\n # 1. clean DC workflow assignement:\n
context.delTypeCBT(ptype.id, dc_wf.id)\n context.delTypeCBT(ptype.id, dc_wf.id)\n
......
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