Commit 3a5100a5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

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

parent 97a68af0
......@@ -1043,7 +1043,7 @@ def convertToERP5Workflow(self, temp_object=False):
sdef = workflow._getOb('state_'+sid)
sdef.setDestinationValueList([
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:
for tid in dc_workflow_transition_value_list:
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