Commit 8e59685e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

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

parent 50d40267
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