Commit 200bf7cb authored by Julien Muchembled's avatar Julien Muchembled

When migrating a simulation tree, drop it if it's not in sync and order is draft

parent f61f0726
......@@ -353,6 +353,9 @@ class AppliedRule(XMLObject, ExplainableMixin):
# does not see the simulated movements we've just deleted.
if delivery.isSimulated():
break
if delivery.getSimulationState() in draft_state_list and \
any(x not in old_dict for x in delivery.getMovementList()):
break
if root_rule:
self.setSpecialise(root_rule)
delivery_set = set((delivery,))
......
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