[Erp5-report] r35064 jerome - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_s...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 6 16:59:48 CEST 2010
Author: jerome
Date: Thu May 6 16:59:47 2010
New Revision: 35064
URL: http://svn.erp5.org?rev=35064&view=rev
Log:
getAccountReference now receives the account directly
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml?rev=35064&r1=35063&r2=35064&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingLineReportLineList.xml [utf8] Thu May 6 16:59:47 2010
@@ -77,17 +77,17 @@
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
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=35064&r1=35063&r2=35064&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Thu May 6 16:59:47 2010
@@ -1,1 +1,1 @@
-1209
+1210
More information about the Erp5-report
mailing list