diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Inventory_getAggregatedItemList.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Inventory_getAggregatedItemList.xml index 2d488fd29e5e1c429aa39c569aa0ce9a92626a56..dfeb4958be1402c1446c2f90f98db3a868b869ac 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Inventory_getAggregatedItemList.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Inventory_getAggregatedItemList.xml @@ -51,6 +51,11 @@ <item> <key> <string>_body</string> </key> <value> <string>from DateTime import DateTime\n +def sorted(seq):\n + seq = seq[:]\n + seq.sort()\n + return seq\n +\n portal = context.getPortalObject()\n request = portal.REQUEST\n \n @@ -79,7 +84,7 @@ for tracking_brain in portal.portal_simulation.getCurrentTrackingList(\n item.getQuantity(at_date=at_date) )\n result_list.append(item_dict)\n \n -return result_list\n +return sorted(result_list)\n </string> </value> </item> <item> @@ -119,6 +124,7 @@ return result_list\n <string>at_date</string> <string>kw</string> <string>DateTime</string> + <string>sorted</string> <string>_getattr_</string> <string>context</string> <string>portal</string> diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision index b29e8d2b2be279ea7c2e24283d29ecb956f7a1bd..306d91c91f0ed2141746a8b6f0d1906fbb7aeb2b 100644 --- a/bt5/erp5_trade/bt/revision +++ b/bt5/erp5_trade/bt/revision @@ -1 +1 @@ -1090 \ No newline at end of file +1091 \ No newline at end of file