Commit 54da2428 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

support legacy simulation hierarchy, for testBPMCore that still uses it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34631 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ecc23ff
......@@ -379,6 +379,9 @@ class BusinessPath(Path, Predicate):
for movement in explanation.getMovementList():
simulation_movement_list = movement.getDeliveryRelatedValueList(
portal_type='Simulation Movement')
if len(simulation_movement_list) == 0: # for legacy simulation hierarchy
simulation_movement_list = movement.getOrderRelatedValueList(
portal_type='Simulation Movement')
delivery_simulation_movement_list.extend(simulation_movement_list)
for simulation_movement in simulation_movement_list:
applied_rule = simulation_movement.getRootAppliedRule()
......
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