From 135b9b8343104f4a08423bf2efb686f7af012aa4 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 2 Dec 2009 16:40:04 +0000 Subject: [PATCH] we need to call getAggregatedMovementList() method on movement_generator, not __init__(). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30991 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/mixin/rule.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5/mixin/rule.py b/product/ERP5/mixin/rule.py index 7c9bd1136b..92fd22faf8 100644 --- a/product/ERP5/mixin/rule.py +++ b/product/ERP5/mixin/rule.py @@ -114,8 +114,9 @@ class RuleMixin: """ # We suppose here that we have an IMovementCollection in hand decision_movement_list = context.getMovementList() - prevision_movement_list = movement_generator(self._getMovementGeneratorContext(), - movement_list=self._getMovementGeneratorMovementList(), rounding=rounding) + prevision_movement_list = movement_generator.getAggregatedMovementList( + self._getMovementGeneratorContext(context), + movement_list=self._getMovementGeneratorMovementList(), rounding=rounding) # Get divergence testers tester_list = self._getMatchingTesterList() -- 2.30.9