From 8afd8034ed462d252d3cfc04cc1eda290332a8f5 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Thu, 22 Oct 2015 17:18:17 +0200 Subject: [PATCH] Keep default location order when picking product issue5050 review15771002 --- move.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/move.py b/move.py index a648507397..db806e78e0 100644 --- a/move.py +++ b/move.py @@ -4,6 +4,7 @@ import datetime import operator from decimal import Decimal from functools import partial +from collections import OrderedDict from sql import Literal, Union, Column, Null from sql.aggregate import Sum @@ -791,7 +792,8 @@ class Move(Workflow, ModelSQL, ModelView): success = False continue to_location = move.to_location - location_qties = {} + # Keep location order for pick_product + location_qties = OrderedDict() if with_childs: childs = Location.search([ ('parent', 'child_of', [move.from_location.id]),