Commit a9bcfc87 authored by Jérome Perrin's avatar Jérome Perrin

do not put a message in edit_workflow history if closing the period already failed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96be9afc
...@@ -78,8 +78,9 @@ try : \n ...@@ -78,8 +78,9 @@ try : \n
comment=comment )\n comment=comment )\n
except ValidationFailed, message :\n except ValidationFailed, message :\n
closing_period = context.getPortalObject().restrictedTraverse(closing_period_path)\n closing_period = context.getPortalObject().restrictedTraverse(closing_period_path)\n
closing_period.failClosing()\n if closing_period.getSimulationState() != \'confirmed\' :\n
closing_period.portal_workflow.doActionFor( closing_period,\n closing_period.failClosing()\n
closing_period.portal_workflow.doActionFor( closing_period,\n
\'edit_action\', \n \'edit_action\', \n
comment=N_(\'unable to deliver ${transaction_path} : ${error_message}\',\n comment=N_(\'unable to deliver ${transaction_path} : ${error_message}\',\n
mapping={\'transaction_path\':context.getPath(),\n mapping={\'transaction_path\':context.getPath(),\n
...@@ -94,7 +95,7 @@ except ValidationFailed, message :\n ...@@ -94,7 +95,7 @@ except ValidationFailed, message :\n
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/erp5_accounting/AccountingTransaction_closeByAccountingPeriod</string> </value> <value> <string>Script (Python):/erp5/portal_skins/erp5_accounting/AccountingTransaction_closeByAccountingPeriod</string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
......
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