From 22f566510da8a233cbcf6fe767e5cd0a84af0fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 5 Jun 2007 13:23:34 +0000 Subject: [PATCH] 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 --- .../erp5_accounting/AccountModule_getBankAccountItemList.xml | 2 +- bt5/erp5_accounting/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml index 3e842e54f8..c6b6c0ce9f 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml @@ -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 diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index ab760c939a..194ba8cc75 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -319 \ No newline at end of file +320 \ No newline at end of file -- 2.30.9