Commit 9e7b8286 authored by Jérome Perrin's avatar Jérome Perrin

Don't display 'None' if no bank account is defined



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13306 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d695f9a
......@@ -79,9 +79,17 @@ organisation = portal.restrictedTraverse(organisation)\n
item_list = [(\'\', \'\')]\n
for bank in organisation.contentValues(\n
portal_type=portal.getPortalPaymentNodeTypeList()):\n
item_list.append((\'%s - %s\' % (bank.getReference(),\n
bank.getTitle() or bank.getSourceFreeText()),\n
bank.getRelativeUrl()))\n
if bank.getReference():\n
item_list.append((\'%s - %s\' % (bank.getReference(),\n
bank.getTitle() or \n
bank.getSourceFreeText() or\n
bank.getSourceTitle()),\n
bank.getRelativeUrl()))\n
else:\n
item_list.append(( bank.getTitle() or \n
bank.getSourceFreeText() or\n
bank.getSourceTitle(),\n
bank.getRelativeUrl() ))\n
\n
return item_list\n
</string> </value>
......
205
\ No newline at end of file
206
\ 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