From 729555526e8174513d3f1eece6aafb20ce3a3740 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Fri, 4 May 2007 14:05:22 +0000
Subject: [PATCH] make sure to check stock values in deliver_action

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14370 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../transitions/deliver_action.xml                       | 9 +++------
 bt5/erp5_banking_cash/bt/revision                        | 2 +-
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_transfer_workflow/transitions/deliver_action.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_transfer_workflow/transitions/deliver_action.xml
index 941cbef3b5..4ac6dbcab0 100644
--- a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_transfer_workflow/transitions/deliver_action.xml
+++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_transfer_workflow/transitions/deliver_action.xml
@@ -51,7 +51,7 @@
         </item>
         <item>
             <key> <string>script_name</string> </key>
-            <value> <string></string> </value>
+            <value> <string>validateVaultBalance</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -67,11 +67,8 @@
   <record id="2" aka="AAAAAAAAAAI=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.DCWorkflow.Guard</string>
-          <string>Guard</string>
-        </tuple>
-        <none/>
+        <global name="Guard" module="Products.DCWorkflow.Guard"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
diff --git a/bt5/erp5_banking_cash/bt/revision b/bt5/erp5_banking_cash/bt/revision
index a540f59f28..58dc5afc0c 100644
--- a/bt5/erp5_banking_cash/bt/revision
+++ b/bt5/erp5_banking_cash/bt/revision
@@ -1 +1 @@
-301
\ No newline at end of file
+303
\ No newline at end of file
-- 
2.30.9