Commit 59ba3fa8 authored by Łukasz Nowak's avatar Łukasz Nowak

Support destroyed as with cancelled sale order lines.

parent 255d6212
...@@ -86,8 +86,10 @@ for hs in portal.portal_catalog(\n ...@@ -86,8 +86,10 @@ for hs in portal.portal_catalog(\n
try:\n try:\n
cleanup_delivery_line = si.Item_getInstancePackingListLine(cleanup_resource)\n cleanup_delivery_line = si.Item_getInstancePackingListLine(cleanup_resource)\n
except ValueError:\n except ValueError:\n
request_hosting_subscription = hs\n order_line = si.getAggregateRelatedValue(portal_type=\'Sale Order Line\')\n
break\n if order_line.getSimulationState() != \'cancelled\':\n
request_hosting_subscription = hs\n
break\n
else:\n else:\n
if cleanup_delivery_line.getSimulationState() != \'delivered\':\n if cleanup_delivery_line.getSimulationState() != \'delivered\':\n
request_hosting_subscription = hs\n request_hosting_subscription = hs\n
......
689 690
\ 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