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,6 +78,7 @@ try : \n ...@@ -78,6 +78,7 @@ 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
if closing_period.getSimulationState() != \'confirmed\' :\n
closing_period.failClosing()\n closing_period.failClosing()\n
closing_period.portal_workflow.doActionFor( closing_period,\n closing_period.portal_workflow.doActionFor( closing_period,\n
\'edit_action\', \n \'edit_action\', \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