Commit 0e9929e0 authored by Jérome Perrin's avatar Jérome Perrin

initialize accounting module selection to sort by preferred_gap_id, like it...

initialize accounting module selection to sort by preferred_gap_id, like it was set on the listbox before (instead of rewriting the test suite...)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26592 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd3d2537
...@@ -102,13 +102,16 @@ stool.setSelectionFor(\'accounting_transaction_module_grouping_reference_fast_in ...@@ -102,13 +102,16 @@ stool.setSelectionFor(\'accounting_transaction_module_grouping_reference_fast_in
stool.setSelectionFor(\'entity_transaction_selection\', None)\n stool.setSelectionFor(\'entity_transaction_selection\', None)\n
stool.setSelectionFor(\'account_module_selection\', None)\n stool.setSelectionFor(\'account_module_selection\', None)\n
\n \n
# set sort order on account module\n
stool.setSelectionParamsFor(\'account_module_selection\', dict()) # (this recreates selection)\n
stool.setSelectionSortOrder(\'account_module_selection\', sort_on=((\'preferred_gap_id\', \'ascending\'),))\n
\n
# delete the "dummy account" we create in test_account_gap_parallel_list_field\n # delete the "dummy account" we create in test_account_gap_parallel_list_field\n
dummy_account_list = portal.account_module.searchFolder(\n dummy_account_list = portal.account_module.searchFolder(\n
title=\'Dummy Account for UI Test\')\n title=\'Dummy Account for UI Test\')\n
if dummy_account_list:\n if dummy_account_list:\n
portal.account_module.manage_delObjects([dummy_account_list[0].getId()])\n portal.account_module.manage_delObjects([dummy_account_list[0].getId()])\n
\n \n
\n
return "Reset Successfully."\n return "Reset Successfully."\n
</string> </value> </string> </value>
</item> </item>
...@@ -163,6 +166,7 @@ return "Reset Successfully."\n ...@@ -163,6 +166,7 @@ return "Reset Successfully."\n
<string>form</string> <string>form</string>
<string>getattr</string> <string>getattr</string>
<string>listbox</string> <string>listbox</string>
<string>dict</string>
<string>dummy_account_list</string> <string>dummy_account_list</string>
</tuple> </tuple>
</value> </value>
......
125 126
\ 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