From 39c19a6da5238ed1ba061bc9f421be8b3eafa1e9 Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Fri, 17 Sep 2010 15:57:49 +0000
Subject: [PATCH] Fix [33401]

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@38465 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/mixin/movement_collection_updater.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/mixin/movement_collection_updater.py b/product/ERP5/mixin/movement_collection_updater.py
index 9d096297e1..aef894f73c 100644
--- a/product/ERP5/mixin/movement_collection_updater.py
+++ b/product/ERP5/mixin/movement_collection_updater.py
@@ -71,7 +71,7 @@ class MovementCollectionUpdaterMixin:
 
     # Get divergence testers
     tester_list = self._getMatchingTesterList()
-    if len(tester_list) == 0 and len(prevision_movement_list) > 2:
+    if not tester_list and len(prevision_movement_list) > 1:
       raise ValueError("It is not possible to match movements without divergence testers")
 
     # Create small groups of movements per hash keys
-- 
2.30.9