Commit 9e6c38d8 authored by Romain Courteaud's avatar Romain Courteaud

Reduce number of accessed documents

parent 35681560
...@@ -78,7 +78,8 @@ parent_url_list = []\n ...@@ -78,7 +78,8 @@ parent_url_list = []\n
for movement in portal.portal_catalog(\n for movement in portal.portal_catalog(\n
portal_type=movement_portal_type,\n portal_type=movement_portal_type,\n
aggregate_uid=obj.getUid(),\n aggregate_uid=obj.getUid(),\n
simulation_state=portal.getPortalCurrentInventoryStateList() + portal.getPortalReservedInventoryStateList() + portal.getPortalTransitInventoryStateList(),\n default_resource_uid=portal.restrictedTraverse(portal.portal_preferences.getPreferredInstanceSetupResource()).getUid(),\n
simulation_state=[\'stopped\'] + portal.getPortalReservedInventoryStateList() + portal.getPortalTransitInventoryStateList(),\n
):\n ):\n
item = movement.getAggregateValue(portal_type=item_portal_type)\n item = movement.getAggregateValue(portal_type=item_portal_type)\n
if item is not None:\n if item is not None:\n
......
360 361
\ 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