Commit 387db977 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: do not invalidate open order, as it breaks the simulation

parent 0f3612c8
......@@ -95,7 +95,7 @@ if open_sale_order.getValidationState() == 'validated':
assert instance_tree.getCausalityState() == 'diverged'
instance_tree.converge(comment="Last open order: %s" % open_order_line.getRelativeUrl())
open_sale_order.invalidate()
open_sale_order.archive()
storeWorkflowComment(open_sale_order, "Instance Tree destroyed: %s" % instance_tree.getRelativeUrl())
elif (instance_tree.getCausalityState() == 'diverged'):
instance_tree.converge(comment="Nothing to do on open order.")
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