From cde7fb6c937968245620001055a5ecbd76ed1fa8 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Fri, 18 Mar 2011 16:20:57 +0000
Subject: [PATCH] the description of isTradeStateCompleted is incorrect, change
 it with review of JP

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44435 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessProcess.py    | 3 +--
 product/ERP5/interfaces/business_process.py | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/Document/BusinessProcess.py b/product/ERP5/Document/BusinessProcess.py
index 9eaacac28bc..495496b484e 100644
--- a/product/ERP5/Document/BusinessProcess.py
+++ b/product/ERP5/Document/BusinessProcess.py
@@ -504,8 +504,7 @@ class BusinessProcess(Path, XMLObject):
   security.declareProtected(Permissions.AccessContentsInformation, 'isTradeStateCompleted')
   def isTradeStateCompleted(self, explanation, trade_state):
     """Returns True if all predecessor trade states are
-    completed and if no successor trade state is completed
-    in the context of given explanation.
+    completed in the context of given explanation.
 
     explanation -- an Order, Order Line, Delivery or Delivery Line or
                    Applied Rule which implicitely defines a simulation subtree
diff --git a/product/ERP5/interfaces/business_process.py b/product/ERP5/interfaces/business_process.py
index de0c073f5cc..99504ae4268 100644
--- a/product/ERP5/interfaces/business_process.py
+++ b/product/ERP5/interfaces/business_process.py
@@ -279,7 +279,7 @@ class ITradeStateProcess(Interface):
 
   def isTradeStateCompleted(explanation, trade_state):
     """Returns True if all predecessor trade states are
-    completed and if no successor trade state is completed
+    completed and if the provided trade state is also completed
     in the context of given explanation.
 
     explanation -- an Order, Order Line, Delivery or Delivery Line or
-- 
2.30.9