From 86ae56d5b45128ab4a58c083f69f8946032c4507 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Fri, 4 May 2007 14:56:05 +0000
Subject: [PATCH] check stock value in deliver_action

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14373 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../cash_sorting_workflow/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/cash_sorting_workflow/transitions/deliver_action.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_sorting_workflow/transitions/deliver_action.xml
index 2b35bd8b4d..353d4dfdc2 100644
--- a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_sorting_workflow/transitions/deliver_action.xml
+++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_sorting_workflow/transitions/deliver_action.xml
@@ -57,7 +57,7 @@
         </item>
         <item>
             <key> <string>script_name</string> </key>
-            <value> <string></string> </value>
+            <value> <string>validateBalance</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -73,11 +73,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 e26ed8de06..5160788e93 100644
--- a/bt5/erp5_banking_cash/bt/revision
+++ b/bt5/erp5_banking_cash/bt/revision
@@ -1 +1 @@
-305
\ No newline at end of file
+307
\ No newline at end of file
-- 
2.30.9