[Erp5-report] r34520 kazuhiko - /erp5/trunk/products/ERP5/Document/BusinessProcess.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 13 17:18:22 CEST 2010


Author: kazuhiko
Date: Tue Apr 13 17:18:18 2010
New Revision: 34520

URL: http://svn.erp5.org?rev=34520&view=rev
Log:
here we want all Business Paths, but getPathValueList(trade_phase=None) now returns an empty list instead of add Business Paths since r34485.

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=34520&r1=34519&r2=34520&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessProcess.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessProcess.py [utf8] Tue Apr 13 17:18:18 2010
@@ -128,7 +128,8 @@
       Returns the list of Business Path which are ready to 
       be built
     """
-    return filter(lambda x:x.isBuildable(explanation), self.getPathValueList())
+    return filter(lambda x:x.isBuildable(explanation),
+                  self.objectValues(portal_type='Business Path'))
 
   def getCompletedStateValueList(self, explanation):
     """




More information about the Erp5-report mailing list