Commit 7c60c3bb authored by Aurel's avatar Aurel

revert to previous version, but check if we are in right state for calling script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13935 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2e5fceee
...@@ -105,9 +105,7 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\' ...@@ -105,9 +105,7 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\'
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -146,6 +146,9 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\' ...@@ -146,6 +146,9 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\'
else:\n else:\n
msg = Message(domain=\'ui\', message="Duplicated checks for the same check number.")\n msg = Message(domain=\'ui\', message="Duplicated checks for the same check number.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n
if transaction.getSimulationState() == "draft":\n
context.updateBankingOperation(state_change)\n
]]></string> </value> ]]></string> </value>
......
141 143
\ 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