Commit a6e44588 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify target solver portal types according to r32269.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32270 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 310bbafd
......@@ -133,7 +133,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
lambda x:x.getCausalityValue().getTestedProperty()=='quantity',
solver_process.contentValues())[0]
# use Quantity Accept Solver.
quantity_solver_decision.setSolverValue(self.portal.portal_types['Quantity Accept Solver'])
quantity_solver_decision.setSolverValue(self.portal.portal_types['Accept Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -167,7 +167,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
lambda x:x.getCausalityValue().getTestedProperty()=='resource',
solver_process.contentValues())[0]
# use Resource Replacement Solver.
resource_solver_decision.setSolverValue(self.portal.portal_types['Resource Replacement Solver'])
resource_solver_decision.setSolverValue(self.portal.portal_types['Accept Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -215,7 +215,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
lambda x:x.getCausalityValue().getTestedProperty()=='quantity',
solver_process.contentValues())[0]
# use Quantity Adoption Solver.
quantity_solver_decision.setSolverValue(self.portal.portal_types['Quantity Adoption Solver'])
quantity_solver_decision.setSolverValue(self.portal.portal_types['Adopt Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -253,7 +253,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
lambda x:x.getCausalityValue().getTestedProperty()=='resource',
solver_process.contentValues())[0]
# use Resource Adopt Solver.
resource_solver_decision.setSolverValue(self.portal.portal_types['Resource Adoption Solver'])
resource_solver_decision.setSolverValue(self.portal.portal_types['Adopt Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -282,7 +282,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
lambda x:x.getCausalityValue().getTestedProperty()=='destination',
solver_process.contentValues()):
# use Destination Replacement Solver.
destination_solver_decision.setSolverValue(self.portal.portal_types['Destination Replacement Solver'])
destination_solver_decision.setSolverValue(self.portal.portal_types['Accept Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -293,7 +293,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
lambda x:x.getCausalityValue().getTestedProperty()=='start_date',
solver_process.contentValues()):
# use StartDate Replacement Solver.
start_date_solver_decision.setSolverValue(self.portal.portal_types['Start Date Replacement Solver'])
start_date_solver_decision.setSolverValue(self.portal.portal_types['Unify Solver'])
# configure for Quantity Split Solver.
kw = {'value':document.getStartDate()}
start_date_solver_decision.updateConfiguration(**kw)
......@@ -322,7 +322,7 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
lambda x:x.getCausalityValue().getTestedProperty()=='start_date',
solver_process.contentValues()):
# use StartDate Replacement Solver.
start_date_solver_decision.setSolverValue(self.portal.portal_types['Start Date Replacement Solver'])
start_date_solver_decision.setSolverValue(self.portal.portal_types['Unify Solver'])
# configure for Quantity Split Solver.
kw = {'value':start_date}
start_date_solver_decision.updateConfiguration(**kw)
......
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