Commit a17c41a1 authored by Romain Courteaud's avatar Romain Courteaud

Can not aggregate tuple and list

parent a83aa79c
...@@ -68,7 +68,7 @@ if obj is None:\n ...@@ -68,7 +68,7 @@ if obj is None:\n
\n \n
portal = obj.getPortalObject()\n portal = obj.getPortalObject()\n
\n \n
state_list = [\'stopped\'] + \\\n state_list = (\'stopped\',) + \\\n
portal.getPortalReservedInventoryStateList() + \\\n portal.getPortalReservedInventoryStateList() + \\\n
portal.getPortalTransitInventoryStateList()\n portal.getPortalTransitInventoryStateList()\n
\n \n
......
...@@ -79,7 +79,7 @@ for movement in portal.portal_catalog(\n ...@@ -79,7 +79,7 @@ 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
default_resource_uid=portal.restrictedTraverse(portal.portal_preferences.getPreferredInstanceSetupResource()).getUid(),\n default_resource_uid=portal.restrictedTraverse(portal.portal_preferences.getPreferredInstanceSetupResource()).getUid(),\n
simulation_state=[\'stopped\'] + portal.getPortalReservedInventoryStateList() + portal.getPortalTransitInventoryStateList(),\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
......
361 362
\ 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