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

erp5_workflow: avoid assigning converted workflow everywhere by fixing ptype condiction.

parent 1e4af19c
......@@ -90,7 +90,7 @@ for dc_wf in selected_wf_list:\n
type_workflow_dict = context.getChainsByType()\n
for ptype_id in type_workflow_dict:\n
ptype = getattr(context.getPortalObject().portal_types, ptype_id, None)\n
if ptype is not None:\n
if ptype is not None and dc_wf.id in context.getChainsByType()[ptype_id]:\n
# 1. clean DC workflow assignement:\n
context.delTypeCBT(ptype.id, dc_wf.id)\n
# 2. assign ERP5 Workflow to portal type:\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