Commit 22f56651 authored by Jérome Perrin's avatar Jérome Perrin

now that we have a BankAccount_getReference script that fallbacks to title, we...

now that we have a BankAccount_getReference script that fallbacks to title, we must take care not to display the title twice which is ugly (and makes test fails)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14690 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent da3259f5
......@@ -79,7 +79,7 @@ organisation = portal.restrictedTraverse(organisation)\n
item_list = [(\'\', \'\')]\n
for bank in organisation.contentValues(\n
portal_type=portal.getPortalPaymentNodeTypeList()):\n
if bank.getReference():\n
if bank.getReference() and bank.getReference() != bank.getTitle():\n
item_list.append((\'%s - %s\' % (bank.getReference(),\n
bank.getTitle() or \n
bank.getSourceFreeText() or\n
......
319
\ No newline at end of file
320
\ 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