Commit 431d97d5 authored by Yusei Tahara's avatar Yusei Tahara

Fix mass workflow transition function. If transition is customized and its...

Fix mass workflow transition function. If transition is customized and its actbox_url does not use ERP5 Form, then use the default workfl
ow action dialog form instead.
parent 87b7bf1c
......@@ -50,7 +50,8 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>Base_translateString = context.Base_translateString\n
<value> <string>portal = context.getPortalObject()\n
Base_translateString = context.Base_translateString\n
item_list = [(\'\', \'\')]\n
for action in context.portal_actions.listFilteredActionsFor(brain).get(\'workflow\', []):\n
transition = action.get(\'transition\', None)\n
......@@ -58,6 +59,9 @@ for action in context.portal_actions.listFilteredActionsFor(brain).get(\'workflo
workflow_id = action[\'transition\'].aq_parent.aq_parent.getId()\n
if workflow_id == brain.workflow_id:\n
dialog_id = action[\'url\'].split(\'?\', 1)[0].split(\'/\')[-1]\n
dialog_object = getattr(portal, dialog_id, None)\n
if dialog_object is None or dialog_object.meta_type != \'ERP5 Form\':\n
dialog_id = portal.Base_viewWorkflowActionDialog.getId()\n
item_list.append((Base_translateString(action[\'title\']),\n
\'%s/%s/%s\' % (workflow_id, action[\'id\'], dialog_id)))\n
\n
......
2014-3-6 yusei
* Fix mass workflow transition function. If transition is customized and its actbox_url does not use ERP5 Form, then use the default workflow action dialog form instead.
2013-07-19 arnaud.fontaine
* Add save button to Ace Editor to save source code while staying on the same page.
......
41107
\ No newline at end of file
41108
\ No newline at end of file
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