[Erp5-report] r44490 seb - /erp5/trunk/products/ERP5/Document/BusinessProcess.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 22 10:06:53 CET 2011


Author: seb
Date: Tue Mar 22 10:06:53 2011
New Revision: 44490

URL: http://svn.erp5.org?rev=44490&view=rev
Log:
this assertion does not match interface documentation. It will
be useful to know expected start date for something else than
applied rule

Modified:
    erp5/trunk/products/ERP5/Document/BusinessProcess.py

Modified: erp5/trunk/products/ERP5/Document/BusinessProcess.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessProcess.py?rev=44490&r1=44489&r2=44490&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessProcess.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessProcess.py [utf8] Tue Mar 22 10:06:53 2011
@@ -167,9 +167,6 @@ class BusinessProcess(Path, XMLObject):
     delay_mode -- optional value to specify calculation mode ('min', 'max')
                   if no value specified use average delay
     """
-    if explanation.getPortalType() != 'Applied Rule':
-      raise TypeError('explanation must be an Applied Rule')
-
     if explanation.getParentValue().getPortalType() == 'Simulation Tool':
       raise ValueError('explanation must not be a Root Applied Rule')
 



More information about the Erp5-report mailing list