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

Only Software Instance destructions are important.

parent 577962c2
......@@ -54,7 +54,8 @@
portal = context.getPortalObject()\n
if not(context.getPortalType() == \'Sale Packing List Line\' \n
and context.getSimulationState() == \'delivered\'\n
and context.getResource() == portal.portal_preferences.getPreferredInstanceCleanupResource()):\n
and context.getResource() == portal.portal_preferences.getPreferredInstanceCleanupResource()\n
and context.getAggregate(portal_type=\'Software Instance\') is not None):\n
return\n
all_delivered = True\n
for sale_packing_list_line in portal.portal_catalog(\n
......
617
\ No newline at end of file
618
\ 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