From 932be8ceb305785200ad214f5855df4a203e9026 Mon Sep 17 00:00:00 2001
From: Fabien Devaux <fab@gnux.info>
Date: Thu, 18 May 2006 12:56:39 +0000
Subject: [PATCH] Utilisation du script pour formatter l'affichage

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7351 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../InvoiceTransactionLine_getSourceItemList.xml       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionLine_getSourceItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionLine_getSourceItemList.xml
index c17b96a4f1..c9ec5b77b3 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionLine_getSourceItemList.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/InvoiceTransactionLine_getSourceItemList.xml
@@ -14,7 +14,7 @@
       <dictionary>
         <item>
             <key> <string>Python_magic</string> </key>
-            <value> <string encoding="base64">O/INCg==</string> </value>
+            <value> <string encoding="base64">bfINCg==</string> </value>
         </item>
         <item>
             <key> <string>Script_magic</string> </key>
@@ -79,11 +79,10 @@ category_dict = {\'income\': \'account_type/income\',\n
 category = category_dict.get(context.id, \'account_type\')\n
 \n
 display_dict = {}\n
+display_funct = context.Account_getFormattedTitle\n
+\n
 def display(x):\n
-  if x not in display_dict:\n
-    gap_id = x.getGapId()\n
-    account_title = x.getTitle()\n
-    display_dict[x] = "%s - %s" % (gap_id, account_title)\n
+  display_dict[x] = display_funct(x)\n
   return display_dict[x]\n
 \n
 def sort(x,y):\n
@@ -158,6 +157,7 @@ return getItemList( category=category, portal_path=portal_path, \n
                             <string>context</string>
                             <string>category</string>
                             <string>display_dict</string>
+                            <string>display_funct</string>
                             <string>display</string>
                             <string>sort</string>
                             <string>None</string>
-- 
2.30.9