Commit 5a96d70b authored by wenjie.zheng's avatar wenjie.zheng

erp5_core: deploy getParentWorkflowValue in Base_getPossibleWorkflowActionItemList.

parent 76369a0c
......@@ -56,7 +56,7 @@ item_list = [(\'\', \'\')]\n
for action in context.portal_actions.listFilteredActionsFor(brain).get(\'workflow\', []):\n
transition = action.get(\'transition\', None)\n
if transition is not None:\n
workflow_id = action[\'transition\'].aq_parent.aq_parent.getId()\n
workflow_id = action[\'transition\'].getParentWorkflowValue().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
......
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