Commit 39c19a6d authored by Julien Muchembled's avatar Julien Muchembled

Fix [33401]

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@38465 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c12aff8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment