Commit e94335a3 authored by Łukasz Nowak's avatar Łukasz Nowak

Allow to reinstall already installed.

Stopped is also finished state, so do not take it as "something in progress".
parent 8b34994e
......@@ -95,7 +95,7 @@ current_delivery_line = portal.portal_catalog.getResultValue(\n
limit=1\n
)\n
\n
if current_delivery_line is not None and current_delivery_line.getResourceUid() == service_uid and current_delivery_line.getSimulationState() != \'delivered\':\n
if current_delivery_line is not None and current_delivery_line.getResourceUid() == service_uid and current_delivery_line.getSimulationState() not in [\'stopped\', \'delivered\']:\n
# change installation in progress\n
return\n
\n
......@@ -126,7 +126,6 @@ packing_list.newContent(\n
)\n
\n
packing_list.confirm(activate_kw=activate_kw)\n
packing_list.startBuilding()\n
]]></string> </value>
......
795
\ No newline at end of file
796
\ 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