Commit beb34c60 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

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

parent cc3a45ee
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