From 98ce9718d970d1a78c59f1ea5613155eb488b7e8 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Mon, 12 Mar 2007 15:21:40 +0000
Subject: [PATCH] As "foo" transitions must not raise (as oposed to
 "foo_action"), the now-raising Base_checkOrCreateCheck script must be called
 at the end of the "before" script called during "foo_action" transition.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13366 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../check_payment_workflow/scripts/validateConsistency.xml      | 2 ++
 .../portal_workflow/check_payment_workflow/transitions/plan.xml | 2 +-
 bt5/erp5_banking_check/bt/revision                              | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml
index 5b9dfb2a01..680012a611 100644
--- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml
+++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml
@@ -158,6 +158,8 @@ elif len(result) == 1:\n
 else:\n
   msg = Message(domain=\'ui\', message=\'Duplicate checks for the same check number\')\n
   raise ValidationFailed, (msg,)\n
+\n
+context.updateBankingOperation(state_change)\n
 
 
 ]]></string> </value>
diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/transitions/plan.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/transitions/plan.xml
index 805a2988d5..fa0863dfce 100644
--- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/transitions/plan.xml
+++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/transitions/plan.xml
@@ -38,7 +38,7 @@
         </item>
         <item>
             <key> <string>after_script_name</string> </key>
-            <value> <string>updateBankingOperation</string> </value>
+            <value> <string></string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision
index 0aede4a000..dec4c59e4a 100644
--- a/bt5/erp5_banking_check/bt/revision
+++ b/bt5/erp5_banking_check/bt/revision
@@ -1 +1 @@
-102
\ No newline at end of file
+104
\ No newline at end of file
-- 
2.30.9