diff --git a/product/ERP5/Document/BusinessPath.py b/product/ERP5/Document/BusinessPath.py index a3412d9bcdb15f7fc30342deddf8f67fcdee6939..594c34e31cb299b0d0d8dcc1e4f67f8ac78bb088 100644 --- a/product/ERP5/Document/BusinessPath.py +++ b/product/ERP5/Document/BusinessPath.py @@ -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()