Commit 2eacf550 authored by Jérome Perrin's avatar Jérome Perrin

allow sorting by letter in grouping reference dialog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20259 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1aa11f12
...@@ -80,7 +80,7 @@ orig_sort_on = portal.portal_selections.getSelectionSortOrder(\n ...@@ -80,7 +80,7 @@ orig_sort_on = portal.portal_selections.getSelectionSortOrder(\n
\'accounting_transaction_module_grouping_reference_fast_input\')\n \'accounting_transaction_module_grouping_reference_fast_input\')\n
sort_on = []\n sort_on = []\n
for sort_column, sort_order in orig_sort_on:\n for sort_column, sort_order in orig_sort_on:\n
if sort_column in (\'date\', \'parent_title\'):\n if sort_column in (\'grouping_reference\', \'date\', \'parent_title\'):\n
sort_on += [(sort_column, sort_order)]\n sort_on += [(sort_column, sort_order)]\n
elif sort_column == \'node_title\':\n elif sort_column == \'node_title\':\n
sort_on += [(\'stock.node_uid\', sort_order)]\n sort_on += [(\'stock.node_uid\', sort_order)]\n
...@@ -202,7 +202,7 @@ return stool.getMovementHistoryList(\n ...@@ -202,7 +202,7 @@ return stool.getMovementHistoryList(\n
<value> <value>
<tuple> <tuple>
<none/> <none/>
<string>grouping</string> <string>grouping</string>
<string></string> <string></string>
<string></string> <string></string>
</tuple> </tuple>
......
...@@ -190,6 +190,10 @@ ...@@ -190,6 +190,10 @@
<key> <string>sort_columns</string> </key> <key> <string>sort_columns</string> </key>
<value> <value>
<list> <list>
<tuple>
<string>grouping_reference</string>
<string>Grouping</string>
</tuple>
<tuple> <tuple>
<string>node_title</string> <string>node_title</string>
<string>Account</string> <string>Account</string>
......
668 669
\ 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