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 ...@@ -74,12 +74,21 @@ return [x for x in hosting_subscription_list if \\\n
default_aggregate_uid=x.getUid(),\n default_aggregate_uid=x.getUid(),\n
limit=1,\n limit=1,\n
)) == 1) or \\\n )) == 1) or \\\n
(len(portal.portal_catalog(\n (\n
portal_type="Sale Packing List Line",\n (len(portal.portal_catalog(\n
default_resource_uid=setup_service.getUid(),\n portal_type="Sale Packing List Line",\n
default_aggregate_uid=x.getUid(),\n default_resource_uid=setup_service.getUid(),\n
limit=1,\n default_aggregate_uid=x.getUid(),\n
)) == 0)]\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> </string> </value>
</item> </item>
<item> <item>
......
339 340
\ 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