diff --git a/product/ERP5/Document/RequirementMovementGroup.py b/product/ERP5/Document/RequirementMovementGroup.py index 9c4fa70322ff859061fea488bef8a28d3267c02d..156ebb94183bdced4ab591fbf669fd5ada863b74 100644 --- a/product/ERP5/Document/RequirementMovementGroup.py +++ b/product/ERP5/Document/RequirementMovementGroup.py @@ -43,10 +43,11 @@ class RequirementMovementGroup(MovementGroup): return True, property_dict def _getRequirementList(self, movement): + root_movement = movement.getRootSimulationMovement() # 'order' category is deprecated. it is kept for compatibility. - order_value = movement.getOrderValue() + order_value = root_movement.getOrderValue() if order_value is None: - order_value = movement.getDeliveryValue() + order_value = root_movement.getDeliveryValue() requirement_list = [] if order_value is not None: if 'Line' in order_value.getPortalType():