Commit 7ba60d33 authored by Łukasz Nowak's avatar Łukasz Nowak

Remove open order lines related to cancelled sale order lines.

parent 9e74be3f
......@@ -78,6 +78,15 @@ for cleanup_line in catalog(\n
if aggregate not in remove_hosting_list:\n
remove_hosting_list.append(aggregate)\n
\n
for cancelled_line in catalog(\n
portal_type=\'Sale Order Line\',\n
default_resource_uid=cleanup_resource_uid,\n
simulation_state=\'cancelled\',\n
**movement_kw):\n
aggregate = cancelled_line.getAggregate(portal_type=\'Hosting Subscription\')\n
if aggregate not in remove_hosting_list:\n
remove_hosting_list.append(aggregate)\n
\n
subscription_service_relative_url=portal.portal_preferences.getPreferredInstanceSubscriptionResource()\n
common_add_kw = dict(\n
portal_type="Open Sale Order Line",\n
......
666
\ No newline at end of file
667
\ 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