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

erp5_workflow: change the title of conversion page; chang the way to get...

erp5_workflow: change the title of conversion page; chang the way to get portal type in convertWorkflow script.
parent 054aa4c0
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Conversion</string> </value> <value> <string>Convert DC Workflow</string> </value>
</item> </item>
<item> <item>
<key> <string>visible</string> </key> <key> <string>visible</string> </key>
......
...@@ -88,8 +88,8 @@ for dc_wf in selected_wf_list:\n ...@@ -88,8 +88,8 @@ for dc_wf in selected_wf_list:\n
selected_wf_id_list.append(dc_wf.id)\n selected_wf_id_list.append(dc_wf.id)\n
\n \n
\n \n
for ptype in context.getPortalObject().portal_types.objectValues():\n for ptype_id in context.getChainDict():\n
\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
\n \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