From 6f65970aa1bcd912cf3c62544be50f6ce065decf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 27 Jun 2014 16:15:23 +0200 Subject: [PATCH] FEC: delete active process at the end of report computation --- ...nsactionModule_aggregateFrenchAccountingTransactionFile.xml | 3 +++ ...e_aggregateFrenchAccountingTransactionFileForPortalType.xml | 3 +++ bt5/erp5_accounting_l10n_fr/bt/revision | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.xml b/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.xml index 6eda45c5dc..29e481c651 100644 --- a/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.xml +++ b/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFile.xml @@ -80,6 +80,9 @@ portal.ERP5Site_notifyReportComplete(\n subject=unicode(translateString(\'French Accounting Transaction File\')),\n message=\'\',\n attachment_list=attachment_list)\n +\n +# delete no longer needed active process\n +active_process.getParentValue().manage_delObjects(ids=[active_process.getId()])\n </string> </value> </item> <item> diff --git a/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFileForPortalType.xml b/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFileForPortalType.xml index d681b13501..fffe4b54fe 100644 --- a/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFileForPortalType.xml +++ b/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_aggregateFrenchAccountingTransactionFileForPortalType.xml @@ -65,6 +65,9 @@ if result_list:\n result_list=result_list)\n \n active_process.postResult(ActiveResult(detail=journal_fragment.encode(\'utf8\').encode(\'zlib\')))\n +\n +# delete no longer needed active process\n +this_portal_type_active_process.getParentValue().manage_delObjects(ids=[this_portal_type_active_process.getId()])\n </string> </value> </item> <item> diff --git a/bt5/erp5_accounting_l10n_fr/bt/revision b/bt5/erp5_accounting_l10n_fr/bt/revision index b74e882ae3..1758dddcce 100644 --- a/bt5/erp5_accounting_l10n_fr/bt/revision +++ b/bt5/erp5_accounting_l10n_fr/bt/revision @@ -1 +1 @@ -31 \ No newline at end of file +32 \ No newline at end of file -- 2.30.9