[Erp5-report] r13292 - 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:55:16 CET 2007


Author: jerome
Date: Thu Mar  8 16:55:12 2007
New Revision: 13292

URL: http://svn.erp5.org?rev=13292&view=rev
Log:
add a fallback for 'strange' accounts.


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=13292&r1=13291&r2=13292&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:55:12 2007
@@ -126,8 +126,11 @@
   except KeyError:\n
     account = portal.restrictedTraverse(account_url)\n
     # fr / m9 / ${classe} / ...\n
-    classe = account.getGap().split(\'/\')[2]\n
-    # XXX this can raise with bad account. add a constraint checker on accounts\n
+    try:\n
+      classe = account.getGap().split(\'/\')[2]\n
+    except IndexError:\n
+      # XXX "bad accounts" will be associated to 9 class\n
+      classe = \'9\'\n
     # XXX also this only work if you have only m9 installed. But anyway, it\'s\n
     # not planned to support m9 and other accounting version on the same\n
     # instance.\n

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=13292&r1=13291&r2=13292&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:55:12 2007
@@ -1,1 +1,1 @@
-88
+89




More information about the Erp5-report mailing list