[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
This commit is contained in:
@@ -7,41 +7,6 @@
|
||||
</record>
|
||||
|
||||
|
||||
<!-- Resource: stock.location -->
|
||||
|
||||
<record id="stock_location_3" model="stock.location">
|
||||
<field name="name">IT Vendors</field>
|
||||
<field name="location_id" ref="stock_location_suppliers"/>
|
||||
<field name="usage">supplier</field>
|
||||
<field name="barcode">2601985</field>
|
||||
<field name="company_id"></field>
|
||||
</record>
|
||||
<record id="stock_location_4" model="stock.location">
|
||||
<field name="name">Big Vendors</field>
|
||||
<field name="location_id" ref="stock_location_3"/>
|
||||
<field name="usage">supplier</field>
|
||||
<field name="company_id"></field>
|
||||
</record>
|
||||
<record id="stock_location_5" model="stock.location">
|
||||
<field name="name">Generic IT Vendors</field>
|
||||
<field name="location_id" ref="stock_location_3"/>
|
||||
<field name="usage">supplier</field>
|
||||
<field name="company_id"></field>
|
||||
</record>
|
||||
<record id="stock_location_7" model="stock.location">
|
||||
<field name="name">European Customers</field>
|
||||
<field name="location_id" ref="stock_location_customers"/>
|
||||
<field name="usage">customer</field>
|
||||
<field name="company_id"></field>
|
||||
</record>
|
||||
<record id="stock_location_8" model="stock.location">
|
||||
<field name="name">Non European Customers</field>
|
||||
<field name="location_id" ref="stock_location_customers"/>
|
||||
<field name="usage">customer</field>
|
||||
<field name="company_id"></field>
|
||||
</record>
|
||||
|
||||
|
||||
<!-- Resource: stock.inventory -->
|
||||
|
||||
<record id="stock_inventory_0" model="stock.inventory">
|
||||
|
||||
@@ -4,12 +4,14 @@
|
||||
<record id="stock_location_14" model="stock.location">
|
||||
<field name="name">Shelf 2</field>
|
||||
<field name="posx">0</field>
|
||||
<field name="barcode">2601985</field>
|
||||
<field name="location_id" model="stock.location"
|
||||
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
|
||||
</record>
|
||||
<record id="stock_location_components" model="stock.location">
|
||||
<field name="name">Shelf 1</field>
|
||||
<field name="posx">0</field>
|
||||
<field name="barcode">2601892</field>
|
||||
<field name="location_id" model="stock.location"
|
||||
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
|
||||
</record>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user