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

erp5_core: history generation script gain compatibility of both type of...

erp5_core: history generation script gain compatibility of both type of workflow by deploying universal methods.
parent b3209eee
......@@ -90,9 +90,10 @@ for history_name in [\'history\', \'building_history\', \'installation_history\'
if workflow_item_list != []:\n
break\n
\n
wf_state_var = portal_workflow[workflow_id].variables.getStateVar()\n
wf_states = portal_workflow[workflow_id].states\n
wf_transitions = portal_workflow[workflow_id].transitions\n
workflow = getattr(portal_workflow, workflow_id)\n
wf_state_var = workflow.getStateVariable()\n
wf_states = workflow.getStateValueList()\n
wf_transitions = workflow.getTransitionValueList()\n
\n
next_serial = None\n
previous_obj = 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