Commit 6f65970a authored by Jérome Perrin's avatar Jérome Perrin

FEC: delete active process at the end of report computation

parent e6e9ca56
...@@ -80,6 +80,9 @@ portal.ERP5Site_notifyReportComplete(\n ...@@ -80,6 +80,9 @@ portal.ERP5Site_notifyReportComplete(\n
subject=unicode(translateString(\'French Accounting Transaction File\')),\n subject=unicode(translateString(\'French Accounting Transaction File\')),\n
message=\'\',\n message=\'\',\n
attachment_list=attachment_list)\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> </string> </value>
</item> </item>
<item> <item>
......
...@@ -65,6 +65,9 @@ if result_list:\n ...@@ -65,6 +65,9 @@ if result_list:\n
result_list=result_list)\n result_list=result_list)\n
\n \n
active_process.postResult(ActiveResult(detail=journal_fragment.encode(\'utf8\').encode(\'zlib\')))\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> </string> </value>
</item> </item>
<item> <item>
......
31 32
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment