diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml index be35f57c1dc1bd8eaa67583c0452f66a63fa64ec..8a4f3faf0db31f08d901864b9ed67011389739c0 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml @@ -59,8 +59,8 @@ gap_id = account.Account_getGapId()\n title = account.getTitle()\n \n -if gap_id.isdigit():\n - title = "%s - %s"%(gap_id, title)\n +if gap_id:\n + title = "%s - %s" % (gap_id, title)\n \n return title\n </string> </value> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index f08bce7b1cdfccb3c6535b9136460570f5632578..3f986b9191e0e52d248f98dfac53523d66f88067 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -841 \ No newline at end of file +842 \ No newline at end of file