Commit 7c326a5f authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not touch movements with which a given delivery builder is not concerned in solving divergence.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25223 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a51c4d02
......@@ -250,7 +250,9 @@ class DeliveryBuilder(OrderBuilder):
return
# Select
movement_list = delivery.getMovementList()
movement_type_list = (self.getDeliveryLinePortalType(),
self.getDeliveryCellPortalType())
movement_list = delivery.getMovementList(portal_type=movement_type_list)
simulation_movement_list = []
for movement in movement_list:
movement.edit(quantity=0)
......
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