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

Support destroyed as with cancelled sale order lines.

parent 255d6212
...@@ -86,6 +86,8 @@ for hs in portal.portal_catalog(\n ...@@ -86,6 +86,8 @@ 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
order_line = si.getAggregateRelatedValue(portal_type=\'Sale Order Line\')\n
if order_line.getSimulationState() != \'cancelled\':\n
request_hosting_subscription = hs\n request_hosting_subscription = hs\n
break\n break\n
else:\n else:\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