Commit 6f194545 authored by Jérome Perrin's avatar Jérome Perrin

sort items in dialog

disable implicit grouping by resource

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21473 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 881fd9e6
......@@ -72,6 +72,7 @@ getobject = portal.portal_catalog.getobject\n
for x in portal.portal_simulation.getInventoryList(\n
portal_type=(\'Pay Sheet Cell\',\n
\'Pay Sheet Line\'),\n
group_by_resource=0,\n
group_by_mirror_section=1):\n
mirror_section_uid = x.mirror_section_uid\n
if mirror_section_uid:\n
......@@ -80,6 +81,7 @@ for x in portal.portal_simulation.getInventoryList(\n
item_list.append((mirror_section.getTitle(),\n
mirror_section.getRelativeUrl()))\n
\n
item_list.sort(lambda a, b: cmp(a[0], b[0]))\n
return item_list\n
</string> </value>
</item>
......
......@@ -79,6 +79,7 @@ for x in portal.portal_simulation.getInventoryList(\n
item_list.append((resource.getTitle(),\n
resource.getRelativeUrl()))\n
\n
item_list.sort(lambda a, b: cmp(a[0], b[0]))\n
return item_list\n
</string> </value>
</item>
......
264
\ No newline at end of file
265
\ 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