From eec68ec93c7c43454db8fdac891087690632f830 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 25 Feb 2009 15:20:10 +0000
Subject: [PATCH] make deleted predicates not match

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25711 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_trade/PurchaseTradeCondition_asPredicate.xml           | 2 +-
 .../portal_skins/erp5_trade/SaleTradeCondition_asPredicate.xml  | 2 +-
 bt5/erp5_trade/bt/revision                                      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/PurchaseTradeCondition_asPredicate.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/PurchaseTradeCondition_asPredicate.xml
index 9e391b4a8e..93ba3c4f04 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/PurchaseTradeCondition_asPredicate.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/PurchaseTradeCondition_asPredicate.xml
@@ -53,7 +53,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>if context.getValidationState() == \'invalidated\':\n
+            <value> <string>if context.getValidationState() in (\'invalidated\', \'deleted\'):\n
   # return a predicate that will never apply\n
   return context.generatePredicate(criterion_property_list=(\'uid\',))\n
 \n
diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleTradeCondition_asPredicate.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleTradeCondition_asPredicate.xml
index ea76f4a9de..2588639b7a 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleTradeCondition_asPredicate.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleTradeCondition_asPredicate.xml
@@ -53,7 +53,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>if context.getValidationState() == \'invalidated\':\n
+            <value> <string>if context.getValidationState() in (\'invalidated\', \'deleted\'):\n
   # return a predicate that will never apply\n
   return context.generatePredicate(criterion_property_list=(\'uid\',))\n
 \n
diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision
index 73623d101c..1fb8d9e69e 100644
--- a/bt5/erp5_trade/bt/revision
+++ b/bt5/erp5_trade/bt/revision
@@ -1 +1 @@
-600
\ No newline at end of file
+601
\ No newline at end of file
-- 
2.30.9