[Erp5-report] r33401 kazuhiko - /erp5/trunk/products/ERP5/mixin/movement_collection_updater.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 4 16:44:49 CET 2010


Author: kazuhiko
Date: Thu Mar  4 16:44:49 2010
New Revision: 33401

URL: http://svn.erp5.org?rev=33401&view=rev
Log:
matching works fine without any matcher if there is only one prevision movement.

Modified:
    erp5/trunk/products/ERP5/mixin/movement_collection_updater.py

Modified: erp5/trunk/products/ERP5/mixin/movement_collection_updater.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/movement_collection_updater.py?rev=33401&r1=33400&r2=33401&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/movement_collection_updater.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/movement_collection_updater.py [utf8] Thu Mar  4 16:44:49 2010
@@ -72,7 +72,7 @@
 
     # Get divergence testers
     tester_list = self._getMatchingTesterList()
-    if len(tester_list) == 0:
+    if len(tester_list) == 0 and len(prevision_movement_list) > 2:
       raise ValueError("It is not possible to match movements without divergence testers")
 
     # Create small groups of movements per hash keys




More information about the Erp5-report mailing list