From 123269397505c83ef0b4c0bef9c100d8b810e983 Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Wed, 27 Apr 2016 12:31:54 +0100 Subject: [PATCH] Fix typo in loop iteration variable Previously the last value from the previous loop would have been used `len(new)` times. --- product/ERP5/Document/MovementSplitSolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/MovementSplitSolver.py b/product/ERP5/Document/MovementSplitSolver.py index 6b3db33864d..142d5291487 100644 --- a/product/ERP5/Document/MovementSplitSolver.py +++ b/product/ERP5/Document/MovementSplitSolver.py @@ -148,7 +148,7 @@ class MovementSplitSolver(SolverMixin, ConfigurableMixin, XMLObject): # * modify 'delivery' value on simulation movements that are # related to the new delivery. # * recalculate quantity on simulation movements - for simulation_moment in new: + for simulation_movement in new: simulation_movement.setDelivery( simulation_movement.getDelivery().replace( '%s/' % old_delivery_url, '%s/' % new_delivery_url)) -- 2.30.9