From ba09eb78a43fe1ecb9a153df0a45543e64979512 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Sun, 24 Aug 2014 18:04:49 +0200 Subject: [PATCH] By default warehouse.production_location is already set issue2854 review7481002 --- tests/scenario_production.rst | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/scenario_production.rst b/tests/scenario_production.rst index 6bd328b26c..29fc30dada 100644 --- a/tests/scenario_production.rst +++ b/tests/scenario_production.rst @@ -58,14 +58,6 @@ Reload the context:: >>> User = Model.get('res.user') >>> config._context = User.get_preferences(True, config.context) -Configuration production location:: - - >>> Location = Model.get('stock.location') - >>> warehouse, = Location.find([('code', '=', 'WH')]) - >>> production_location, = Location.find([('code', '=', 'PROD')]) - >>> warehouse.production_location = production_location - >>> warehouse.save() - Create product:: >>> ProductUom = Model.get('product.uom') @@ -138,6 +130,7 @@ Create an Inventory:: >>> Inventory = Model.get('stock.inventory') >>> InventoryLine = Model.get('stock.inventory.line') + >>> Location = Model.get('stock.location') >>> storage, = Location.find([ ... ('code', '=', 'STO'), ... ])