Commit 724794f2 authored by Jérome Perrin's avatar Jérome Perrin

solver processes are now inside solver process tool


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4cee6217
......@@ -243,13 +243,13 @@ class TestTradeModelLine(TestTradeModelLineMixin):
def stepAcceptDecisionQuantityInvoice(self, sequence=None, **kw):
invoice = sequence.get('invoice')
solver_tool = self.portal.portal_solvers
solver_process = solver_tool.newSolverProcess(invoice)
solver_process_tool = self.portal.portal_solver_processes
solver_process = solver_process_tool.newSolverProcess(invoice)
for quantity_solver_decision in filter(
lambda x:x.getCausalityValue().getTestedProperty()=='quantity',
solver_process.contentValues()):
# use Trade Model Solver.
quantity_solver_decision.setSolverValue(self.portal.portal_types['Trade Model Solver'])
quantity_solver_decision.setSolverValue(self.portal.portal_solvers['Trade Model Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
......
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