Commit aa64ed0a authored by Sebastien Robin's avatar Sebastien Robin

reindex simulation movement when we do expand


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3730 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c97b0549
......@@ -94,6 +94,8 @@ class OrderRule(DeliveryRule):
# XXX Make sure this is not deleted if already in delivery
applied_rule._delObject(movement.getId())
else:
# We need to reindex, because the value acquired by simulation movement may change
movement.reindexObject()
existing_uid_list_append(order_value.getUid())
# Build simulation movement if necessary
for order_movement in my_order.getMovementList():
......
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