From 9b4791779b26e6ff8c8e5e835de3af9a9ec9f4c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Mon, 15 Dec 2008 16:27:42 +0000
Subject: [PATCH] allow to call cancel method from any transition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24898 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_workflow/check_deposit_workflow/states/ordered.xml   | 1 +
 .../portal_workflow/check_deposit_workflow/states/planned.xml   | 1 +
 .../portal_workflow/check_deposit_workflow/states/waiting.xml   | 1 +
 bt5/erp5_banking_check/bt/revision                              | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/ordered.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/ordered.xml
index 209ccc287d..0169a36ab5 100644
--- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/ordered.xml
+++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/ordered.xml
@@ -37,6 +37,7 @@
             <key> <string>transitions</string> </key>
             <value>
               <tuple>
+                <string>cancel</string>
                 <string>deliver</string>
                 <string>deliver_action</string>
                 <string>reject</string>
diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/planned.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/planned.xml
index 05a050c4a1..8f476a1e72 100644
--- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/planned.xml
+++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/planned.xml
@@ -37,6 +37,7 @@
             <key> <string>transitions</string> </key>
             <value>
               <tuple>
+                <string>cancel</string>
                 <string>order</string>
                 <string>order_action</string>
                 <string>reject</string>
diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/waiting.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/waiting.xml
index cec1df60a7..3db67d508a 100644
--- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/waiting.xml
+++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/states/waiting.xml
@@ -39,6 +39,7 @@
               <tuple>
                 <string>accept</string>
                 <string>accept_action</string>
+                <string>cancel</string>
                 <string>refuse_action</string>
                 <string>reject</string>
               </tuple>
diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision
index 5c9fe11c04..511fa83dfa 100644
--- a/bt5/erp5_banking_check/bt/revision
+++ b/bt5/erp5_banking_check/bt/revision
@@ -1 +1 @@
-413
\ No newline at end of file
+414
\ No newline at end of file
-- 
2.30.9