Commit 845ccfe0 authored by Jérome Perrin's avatar Jérome Perrin

display bank account reference and bank account title in

AccountModule_getBankAccountItemList



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13263 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a567cdea
...@@ -72,12 +72,16 @@ ...@@ -72,12 +72,16 @@
if organisation == \'\' :\n if organisation == \'\' :\n
organisation = context.REQUEST.get(\'organisation\', None)\n organisation = context.REQUEST.get(\'organisation\', None)\n
if organisation is None : \n if organisation is None : \n
organisation = portal.portal_preferences.getPreferredAccountingTransactionSourceSection()\n organisation = portal.portal_preferences\\\n
.getPreferredAccountingTransactionSourceSection()\n
\n \n
organisation = portal.restrictedTraverse(organisation)\n organisation = portal.restrictedTraverse(organisation)\n
item_list = [(\'\', \'\')]\n item_list = [(\'\', \'\')]\n
for bank in organisation.objectValues(portal_type=portal.getPortalPaymentNodeTypeList()):\n for bank in organisation.contentValues(\n
item_list.append((bank.getTitle(), bank.getRelativeUrl()))\n portal_type=portal.getPortalPaymentNodeTypeList()):\n
item_list.append((\'%s - %s\' % (bank.getReference(),\n
bank.getTitle() or bank.getSourceFreeText()),\n
bank.getRelativeUrl()))\n
\n \n
return item_list\n return item_list\n
</string> </value> </string> </value>
......
195 196
\ 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