From 12aa92a7853ca054ca93e6dc25a79e02bdd55098 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 17 Dec 2009 09:53:45 +0000 Subject: [PATCH] fix SolverProcess.buildSolverDecisionList(). * we need to include divergence testers for quantity. * we don't need solver decisions for testers that are not divergent. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31370 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/SolverProcess.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/SolverProcess.py b/product/ERP5/Document/SolverProcess.py index 4550dcd116..6caac92e5d 100644 --- a/product/ERP5/Document/SolverProcess.py +++ b/product/ERP5/Document/SolverProcess.py @@ -174,7 +174,9 @@ class SolverProcess(XMLObject, ActiveProcess): for movement in movement_list: for simulation_movement in movement.getDeliveryRelatedValueList(): simulation_movemet_url = simulation_movement.getRelativeUrl() - for divergence_tester in simulation_movement.getParentValue().getSpecialiseValue()._getDivergenceTesterList(): + for divergence_tester in simulation_movement.getParentValue().getSpecialiseValue()._getDivergenceTesterList(exclude_quantity=False): + if divergence_tester.compare(simulation_movement, movement): + continue application_list = map(lambda x:x.getRelativeUrl(), self.getSolverDecisionApplicationValueList(movement, divergence_tester)) application_list.sort() -- 2.30.9