From cf6f6b1cab6c6a4a32b2521bd57f1be996a8e76c Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Wed, 14 Jun 2006 17:59:59 +0000 Subject: [PATCH] Return corporate name if possible when displaying the list of organisations. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7720 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../AccountingTransaction_getSourceSectionItemList.xml | 2 +- bt5/erp5_accounting/bt/change_log | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml index 2ce0bd7f82..f0658c6ee1 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml @@ -77,7 +77,7 @@ section_cat_obj = context.portal_categories.resolveCategory(section_cat)\n valids = section_cat_obj.getGroupRelatedValueList(portal_type=\'Organisation\')\n \n # convert to ListField format\n -return [(valid.getTitle(), valid.getRelativeUrl()) for valid in valids]\n +return [(valid.getCorporateName() or valid.getTitle(), valid.getRelativeUrl()) for valid in valids]\n </string> </value> </item> <item> diff --git a/bt5/erp5_accounting/bt/change_log b/bt5/erp5_accounting/bt/change_log index cc82155103..b1fc061df5 100644 --- a/bt5/erp5_accounting/bt/change_log +++ b/bt5/erp5_accounting/bt/change_log @@ -1,3 +1,6 @@ +2006-06-14 Kevin +* Return corporate name if possible when displaying the list of organisations. + 2006-06-12 Kevin * Add Closing Transaction Line portal type to use in AccountingTransactionModule_createClosingTransaction script. -- 2.30.9