Commit 9736852b authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Klaus Wölfel

erp5_base: Delivery Movement update Causality calls updateCausalityState by activity when possible

parent 03f4b9bf
state_change['object'].getExplanationValue().Delivery_calculate() explanation = state_change['object'].getExplanationValue()
if explanation.getSimulationState() in ("draft", "auto_planned"):
# No need to do DeliveryCalculate at once
explanation.activate().Delivery_calculate()
else:
explanation.Delivery_calculate()
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