From df0aca9b6cdda904b8ace99ce52850b7507de19b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 5 Mar 2007 13:38:57 +0000
Subject: [PATCH] prevent passing transitions when the document still have
 activities

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13222 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../transitions/cancel_action.xml             | 25 +++++++++++++++++++
 .../transitions/emit_action.xml               | 25 +++++++++++++++++++
 bt5/erp5_accounting_l10n_fr_m9/bt/revision    |  2 +-
 3 files changed, 51 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/cancel_action.xml b/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/cancel_action.xml
index c334178524..7c7f1f16d5 100644
--- a/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/cancel_action.xml
+++ b/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/cancel_action.xml
@@ -79,6 +79,12 @@
     </pickle>
     <pickle>
       <dictionary>
+        <item>
+            <key> <string>expr</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
         <item>
             <key> <string>roles</string> </key>
             <value>
@@ -90,4 +96,23 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.CMFCore.Expression</string>
+          <string>Expression</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>not: object/hasActivity</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/emit_action.xml b/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/emit_action.xml
index a0d44bb0d3..df0f68f622 100644
--- a/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/emit_action.xml
+++ b/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transfer_workflow/transitions/emit_action.xml
@@ -79,6 +79,12 @@
     </pickle>
     <pickle>
       <dictionary>
+        <item>
+            <key> <string>expr</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
         <item>
             <key> <string>roles</string> </key>
             <value>
@@ -91,4 +97,23 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.CMFCore.Expression</string>
+          <string>Expression</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>not: object/hasActivity</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_accounting_l10n_fr_m9/bt/revision b/bt5/erp5_accounting_l10n_fr_m9/bt/revision
index 3ca9062a11..615be700b9 100644
--- a/bt5/erp5_accounting_l10n_fr_m9/bt/revision
+++ b/bt5/erp5_accounting_l10n_fr_m9/bt/revision
@@ -1 +1 @@
-84
\ No newline at end of file
+85
\ No newline at end of file
-- 
2.30.9