From a70b220be75ad4cf893f460822dad0409d0629a8 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Fri, 1 Jul 2016 16:02:32 +0200 Subject: [PATCH] Add shipment moves (tuple) + Purchase State 'processing --- production.py | 2 +- tests/scenario_production_subcontract.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/production.py b/production.py index 0b68583..8408832 100644 --- a/production.py +++ b/production.py @@ -173,7 +173,7 @@ class Production: for output in production.outputs: move = production._get_incoming_shipment_move(output, from_location, to_location) - shipment.moves.append(move) + shipment.moves += (move,) shipment.save() ShipmentInternal.wait([shipment]) production.incoming_shipment = shipment diff --git a/tests/scenario_production_subcontract.rst b/tests/scenario_production_subcontract.rst index fa45009..75a1d0c 100644 --- a/tests/scenario_production_subcontract.rst +++ b/tests/scenario_production_subcontract.rst @@ -315,7 +315,7 @@ Make a subcontract production:: >>> Purchase.process([purchase.id], config.context) >>> purchase.reload() >>> purchase.state - u'done' + u'processing' >>> production.reload() >>> production.incoming_shipment.id 1