Commit 20c4023c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

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

parent 56c9c687
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