Commit a8e09ae0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

requirement should be taken from the first simulation movement, that is not...

requirement should be taken from the first simulation movement, that is not movement here for the new simulation tree.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32570 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8a39266
......@@ -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():
......
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