Commit c95effff authored by Gabriel Monnerat's avatar Gabriel Monnerat

remove condition because stopComputerPartition should be called only when the...

remove condition because stopComputerPartition should be called only when the transition is possible
parent b66a8327
...@@ -54,10 +54,8 @@ ...@@ -54,10 +54,8 @@
packing_list_line = context.SoftwareInstance_getInstanceHostingPackingListLine(state_change)\n packing_list_line = context.SoftwareInstance_getInstanceHostingPackingListLine(state_change)\n
except ValueError:\n except ValueError:\n
return\n return\n
isTransitionPossible = context.portal_workflow.isTransitionPossible\n
packing_list = packing_list_line.getParentValue()\n packing_list = packing_list_line.getParentValue()\n
if isTransitionPossible(packing_list, "deliver"):\n packing_list.deliver()\n
packing_list.deliver()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
273 274
\ No newline at end of file \ 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