Commit f20acd9c authored by Aurel's avatar Aurel

only try to solve automatically divergence on quantity

parent 99fa7e17
...@@ -104,8 +104,8 @@ class QuantitySplitMoveSolver(QuantitySplitSolver): ...@@ -104,8 +104,8 @@ class QuantitySplitMoveSolver(QuantitySplitSolver):
if divergence_list: if divergence_list:
solver_process_tool = portal.portal_solver_processes solver_process_tool = portal.portal_solver_processes
solver_process = solver_process_tool.newSolverProcess(delivery_to_move) solver_process = solver_process_tool.newSolverProcess(delivery_to_move)
solver_decision, = [x for x in solver_process.contentValues() for solver_decision in [x for x in solver_process.contentValues()
if x.getCausalityValue().getTestedProperty() == "quantity"] if x.getCausalityValue().getTestedProperty() == "quantity"]:
# use Quantity Accept Solver. # use Quantity Accept Solver.
solver_decision.setSolverValue(portal.portal_solvers['Adopt Solver']) solver_decision.setSolverValue(portal.portal_solvers['Adopt Solver'])
# configure for Accept Solver. # configure for Accept Solver.
......
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