Commit 0efbc402 authored by Łukasz Nowak's avatar Łukasz Nowak

Support Sale Order causality relation.

When instance is requested in stopped state it will not have setup delivery on
casuality relation, so just use Sale Order state.
parent f0440c9d
......@@ -68,7 +68,7 @@ else:\n
else:\n
return \'Start in progress\' \n
elif state == "stop_requested":\n
if delivery_state == "delivered":\n
if delivery_state == "delivered" or (delivery.getPortalType() == \'Sale Order\' and delivery.getSimulationState() == \'confirmed\'):\n
return \'Stopped\'\n
else:\n
return \'Stop in progress\'\n
......
751
\ No newline at end of file
752
\ No newline at end of file
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