[Erp5-report] r13289 - in /erp5/trunk/bt5/erp5_accounting_l10n_fr_m9: SkinTemplateItem/port...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 8 16:31:59 CET 2007


Author: jerome
Date: Thu Mar  8 16:31:53 2007
New Revision: 13289

URL: http://svn.erp5.org?rev=13289&view=rev
Log:
AccountingTransactionModule_getJournalPerTransmissionSheetReportSectionList
doesnt have to take origin into account.


Modified:
    erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getJournalPerTransmissionSheetReportSectionList.xml
    erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getJournalPerTransmissionSheetReportSectionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getJournalPerTransmissionSheetReportSectionList.xml?rev=13289&r1=13288&r2=13289&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getJournalPerTransmissionSheetReportSectionList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getJournalPerTransmissionSheetReportSectionList.xml Thu Mar  8 16:31:53 2007
@@ -134,18 +134,6 @@
     account_class_cache[account_url] = classe\n
     return classe\n
 \n
-origin_id_cache = {None:\'\', \'\':\'\'}\n
-def getOriginId(origin_url):\n
-  try:\n
-    return origin_id_cache[origin_url]\n
-  except KeyError:\n
-    origin = portal.portal_categories.origin.restrictedTraverse(origin_url)\n
-    origin_id = origin.getId()\n
-    if origin_id in portal.portal_types.objectIds():\n
-      origin_id = \'\'\n
-    origin_id_cache[origin_url] = origin_id\n
-    return origin_id\n
-\n
 for brain in simtool.getMovementHistoryList(\n
         from_date=from_date.earliestTime(),\n
         at_date=at_date.latestTime(),\n
@@ -158,7 +146,7 @@
         mvt.getPaymentMode(\'\').startswith(payment_mode_url):\n
     continue\n
 \n
-  origin = getOriginId(mvt.getOrigin())\n
+  origin = \'\' # disabled for this report\n
   sheet = mvt.getParentValue().getAggregateTitle(\n
                                 portal_type=\'Invoice Transmission Sheet\')\n
   if brain.node_relative_url:\n
@@ -326,8 +314,6 @@
                             <string>per_account_cache</string>
                             <string>account_class_cache</string>
                             <string>getAccountClass</string>
-                            <string>origin_id_cache</string>
-                            <string>getOriginId</string>
                             <string>brain</string>
                             <string>mvt</string>
                             <string>origin</string>

Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision?rev=13289&r1=13288&r2=13289&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/bt/revision Thu Mar  8 16:31:53 2007
@@ -1,1 +1,1 @@
-87
+88




More information about the Erp5-report mailing list