From cdec4aeea9bf41fe2ca691509af92d42e0608b75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 6 May 2010 14:59:47 +0000
Subject: [PATCH] getAccountReference now receives the account directly

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35064 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 ...sactionModule_getAccountingLineReportLineList.xml | 12 ++++++------
 bt5/erp5_accounting/bt/revision                      |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml
index 29f5a98613..f99aa5c94b 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml
@@ -77,17 +77,17 @@ else:\n
   delivery_list = \\\n
     portal_selections.callSelectionFor(selection_name, context=context)\n
 \n
+\n
 account_reference_cache = dict()\n
-def getAccountReference(relative_url):\n
+def getAccountReference(node):\n
   try:\n
-    return account_reference_cache[relative_url]\n
+    return account_reference_cache[node]\n
   except KeyError:\n
-    if relative_url:\n
-      reference = \\\n
-        portal.restrictedTraverse(relative_url).Account_getGapId()\n
+    if node is not None:\n
+      reference = node.Account_getGapId()\n
     else:\n
       reference = \'\'\n
-    account_reference_cache[relative_url] = reference\n
+    account_reference_cache[node] = reference\n
     return reference\n
 \n
 def getTitle(document):\n
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 7862d759d5..68d2b3287b 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-1209
\ No newline at end of file
+1210
\ No newline at end of file
-- 
2.30.9