Commit 57f550ac authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5 Workflow: ignore non-existing transitions in convertToERP5Workflow().

parent ede79723
...@@ -1043,7 +1043,7 @@ def convertToERP5Workflow(self, temp_object=False): ...@@ -1043,7 +1043,7 @@ def convertToERP5Workflow(self, temp_object=False):
sdef = workflow._getOb('state_'+sid) sdef = workflow._getOb('state_'+sid)
sdef.setDestinationValueList([ sdef.setDestinationValueList([
workflow.getTransitionValueByReference(tid) workflow.getTransitionValueByReference(tid)
for tid in self.states.get(sid).transitions]) for tid in self.states.get(sid).transitions if workflow.getTransitionValueByReference(tid) is not None])
# set transition's destination state: # set transition's destination state:
for tid in dc_workflow_transition_value_list: for tid in dc_workflow_transition_value_list:
tdef = workflow.getTransitionValueByReference(tid) tdef = workflow.getTransitionValueByReference(tid)
......
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