[Erp5-report] r36565 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/BusinessPath.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 24 05:11:27 CEST 2010
Author: nicolas.dumazet
Date: Thu Jun 24 05:11:25 2010
New Revision: 36565
URL: http://svn.erp5.org?rev=36565&view=rev
Log:
when _one_ of the movements has no delivery, we can break early
Modified:
erp5/trunk/products/ERP5/Document/BusinessPath.py
Modified: erp5/trunk/products/ERP5/Document/BusinessPath.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessPath.py?rev=36565&r1=36564&r2=36565&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] Thu Jun 24 05:11:25 2010
@@ -236,6 +236,7 @@ class BusinessPath(Path, Predicate):
explanation):
if simulation_movement.getDeliveryValue() is None:
result = True
+ break
predecessor = self.getPredecessorValue()
if predecessor is None:
return result
More information about the Erp5-report
mailing list