From f3ad1e2bcbca12be0468d6f9f1694542ebfc5b16 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Mon, 22 Oct 2018 09:03:22 +0000 Subject: [PATCH] [REF] stock: remove confusing demo data As configuring multiple vendor locations is a quite advanced case, that need too change configuration on partners, and eventually routing, we remove those demo data that can lead to misunderstanding the way vendor locations works. We've also adapted a test that was using those demo data TASK-ID: 38469 --- addons/stock/data/stock_demo.xml | 35 ------------------- addons/stock/data/stock_demo_pre.xml | 2 ++ .../stock/tests/test_stock_location_search.py | 2 +- 3 files changed, 3 insertions(+), 36 deletions(-) diff --git a/addons/stock/data/stock_demo.xml b/addons/stock/data/stock_demo.xml index 5ba6b1a3dd6..f274a335fa7 100644 --- a/addons/stock/data/stock_demo.xml +++ b/addons/stock/data/stock_demo.xml @@ -7,41 +7,6 @@ - - - - IT Vendors - - supplier - 2601985 - - - - Big Vendors - - supplier - - - - Generic IT Vendors - - supplier - - - - European Customers - - customer - - - - Non European Customers - - customer - - - - diff --git a/addons/stock/data/stock_demo_pre.xml b/addons/stock/data/stock_demo_pre.xml index f72e84cdfc2..57fac7bc229 100644 --- a/addons/stock/data/stock_demo_pre.xml +++ b/addons/stock/data/stock_demo_pre.xml @@ -4,12 +4,14 @@ Shelf 2 0 + 2601985 Shelf 1 0 + 2601892 diff --git a/addons/stock/tests/test_stock_location_search.py b/addons/stock/tests/test_stock_location_search.py index 014759c7899..d19cfa8d775 100644 --- a/addons/stock/tests/test_stock_location_search.py +++ b/addons/stock/tests/test_stock_location_search.py @@ -7,7 +7,7 @@ class TestStockLocationSearch(common.TransactionCase): def setUp(self): super(TestStockLocationSearch, self).setUp() self.location = self.env['stock.location'] - self.location_barcode = self.env.ref('stock.stock_location_3') + self.location_barcode = self.env.ref('stock.stock_location_14') self.location_barcode_id = self.location_barcode.id self.barcode = self.location_barcode.barcode self.name = self.location_barcode.name