Commit cde7fb6c authored by Sebastien Robin's avatar Sebastien Robin

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
parent c6c069d8
...@@ -504,8 +504,7 @@ class BusinessProcess(Path, XMLObject): ...@@ -504,8 +504,7 @@ class BusinessProcess(Path, XMLObject):
security.declareProtected(Permissions.AccessContentsInformation, 'isTradeStateCompleted') security.declareProtected(Permissions.AccessContentsInformation, 'isTradeStateCompleted')
def isTradeStateCompleted(self, explanation, trade_state): def isTradeStateCompleted(self, explanation, trade_state):
"""Returns True if all predecessor trade states are """Returns True if all predecessor trade states are
completed and if no successor trade state is completed completed in the context of given explanation.
in the context of given explanation.
explanation -- an Order, Order Line, Delivery or Delivery Line or explanation -- an Order, Order Line, Delivery or Delivery Line or
Applied Rule which implicitely defines a simulation subtree Applied Rule which implicitely defines a simulation subtree
......
...@@ -279,7 +279,7 @@ class ITradeStateProcess(Interface): ...@@ -279,7 +279,7 @@ class ITradeStateProcess(Interface):
def isTradeStateCompleted(explanation, trade_state): def isTradeStateCompleted(explanation, trade_state):
"""Returns True if all predecessor trade states are """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. in the context of given explanation.
explanation -- an Order, Order Line, Delivery or Delivery Line or explanation -- an Order, Order Line, Delivery or Delivery Line or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment