From 2ae6c79dd4f84929feb4dc807f4e7c6772c397fc Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri, 15 Jan 2010 14:12:21 +0000 Subject: [PATCH] fix start_date to be used in stepUnifyStartDateWithPrevision. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31776 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Simulation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testERP5Simulation.py b/product/ERP5/tests/testERP5Simulation.py index 2c7be490bb..ae142093a0 100644 --- a/product/ERP5/tests/testERP5Simulation.py +++ b/product/ERP5/tests/testERP5Simulation.py @@ -377,6 +377,9 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): Check if simulation movement are disconnected """ packing_list = sequence.get('packing_list') + applied_rule = sequence.get('applied_rule') + simulation_line_list = applied_rule.objectValues() + start_date = simulation_line_list[-1].getStartDate() solver_tool = self.portal.portal_solvers solver_process = solver_tool.newSolverProcess(packing_list) for start_date_solver_decision in filter( @@ -385,7 +388,7 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): # use StartDate Replacement Solver. start_date_solver_decision.setSolverValue(self.portal.portal_types['Start Date Replacement Solver']) # configure for Quantity Split Solver. - kw = {'value':packing_list.contentValues()[-1].getDeliveryRelatedValue().getStartDate()} + kw = {'value':start_date} start_date_solver_decision.updateConfiguration(**kw) solver_process.buildTargetSolverList() solver_process.solve() -- 2.30.9