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
\n
portal = obj.getPortalObject()\n
\n
state_list = [\'stopped\'] + \\\n
state_list = (\'stopped\',) + \\\n
portal.getPortalReservedInventoryStateList() + \\\n
portal.getPortalTransitInventoryStateList()\n
\n
......
......@@ -79,7 +79,7 @@ for movement in portal.portal_catalog(\n
portal_type=movement_portal_type,\n
aggregate_uid=obj.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
item = movement.getAggregateValue(portal_type=item_portal_type)\n
if item is not None:\n
......
361
\ No newline at end of file
362
\ 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