Commit 9e74be3f authored by Łukasz Nowak's avatar Łukasz Nowak

Do not show HS related to cancelled Sale Order Lines.

parent 852c7fe0
......@@ -74,12 +74,21 @@ return [x for x in hosting_subscription_list if \\\n
default_aggregate_uid=x.getUid(),\n
limit=1,\n
)) == 1) or \\\n
(len(portal.portal_catalog(\n
portal_type="Sale Packing List Line",\n
default_resource_uid=setup_service.getUid(),\n
default_aggregate_uid=x.getUid(),\n
limit=1,\n
)) == 0)]\n
(\n
(len(portal.portal_catalog(\n
portal_type="Sale Packing List Line",\n
default_resource_uid=setup_service.getUid(),\n
default_aggregate_uid=x.getUid(),\n
limit=1,\n
)) == 0) and \\\n
(len(portal.portal_catalog(\n
portal_type="Sale Order Line",\n
default_resource_uid=setup_service.getUid(),\n
simulation_state="cancelled",\n
default_aggregate_uid=x.getUid(),\n
limit=1,\n
)) == 0)\n
)]\n
</string> </value>
</item>
<item>
......
339
\ No newline at end of file
340
\ 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