Commit a0c86e8b authored by Jérome Perrin's avatar Jérome Perrin

display the bank account reference or the title.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10632 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6451f000
...@@ -79,7 +79,7 @@ if organisation is not None:\n ...@@ -79,7 +79,7 @@ if organisation is not None:\n
for bank_account in bank_account_list:\n for bank_account in bank_account_list:\n
url = bank_account.getRelativeUrl()\n url = bank_account.getRelativeUrl()\n
#label = bank_account.getIban()\n #label = bank_account.getIban()\n
label = bank_account.getTitle()\n label = bank_account.getReference() or bank_account.getTitle()\n
item_list.append([label, url])\n item_list.append([label, url])\n
\n \n
item_list.sort(sort)\n item_list.sort(sort)\n
......
...@@ -78,7 +78,7 @@ if organisation is not None:\n ...@@ -78,7 +78,7 @@ if organisation is not None:\n
bank_account_list = organisation.contentValues(filter={\'portal_type\': [\'Bank Account\', \'Cash Register\', \'Credit Card\']})\n bank_account_list = organisation.contentValues(filter={\'portal_type\': [\'Bank Account\', \'Cash Register\', \'Credit Card\']})\n
for bank_account in bank_account_list:\n for bank_account in bank_account_list:\n
url = bank_account.getRelativeUrl()\n url = bank_account.getRelativeUrl()\n
label = bank_account.getTitle()\n label = bank_account.getReference() or bank_account.getTitle()\n
item_list.append([label, url])\n item_list.append([label, url])\n
\n \n
item_list.sort(sort)\n item_list.sort(sort)\n
......
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