From 772aa90eb0b62501632626f86121ea00862797d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 12 Mar 2013 10:35:40 +0100 Subject: [PATCH] Use instance in shipments review708002 --- stock.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stock.py b/stock.py index 1671500814..2251f16438 100644 --- a/stock.py +++ b/stock.py @@ -69,10 +69,10 @@ class ShipmentIn: @classmethod def _get_inventory_moves(cls, incoming_move): - result = super(ShipmentIn, cls)._get_inventory_moves(incoming_move) - if result and incoming_move.lot: - result['lot'] = incoming_move.lot.id - return result + move = super(ShipmentIn, cls)._get_inventory_moves(incoming_move) + if move and incoming_move.lot: + move.lot = incoming_move.lot + return move class ShipmentOut: @@ -128,8 +128,8 @@ class ShipmentOutReturn: @classmethod def _get_inventory_moves(cls, incoming_move): - result = super(ShipmentOutReturn, + move = super(ShipmentOutReturn, cls)._get_inventory_moves(incoming_move) - if result and incoming_move.lot: - result['lot'] = incoming_move.lot.id - return result + if move and incoming_move.lot: + move.lot = incoming_move.lot + return move