summaryrefslogtreecommitdiff
path: root/addons/sale_stock/data
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2019-08-22 09:18:48 +0000
committersvs-odoo <svs@odoo.com>2020-03-26 11:27:45 +0000
commita05b21d74bde2b242e6d85f2d1ecf3e3638fde20 (patch)
treeb738115bed8bf53e0df792e55b9b21b938a25cf7 /addons/sale_stock/data
parentf476120948d8c6c34fd7bcb7abde208e998201e5 (diff)
[IMP] *: remove sublocation for demodata
Demo data product's quantities are no more put in sublocation as by default, multilocation aren't active. Also, adapts `test_location_usage` because as we moved quantities from sublocations to the main stock location, the stock warehouse will have reserved quantity due to a backorder created by demo data. In this test, we try to change location as a scrap location, what we can't do if this location has some reserved quantities. Task #1970460
Diffstat (limited to 'addons/sale_stock/data')
-rw-r--r--addons/sale_stock/data/sale_order_demo.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/sale_stock/data/sale_order_demo.xml b/addons/sale_stock/data/sale_order_demo.xml
index 6db1b10b172..98f75556797 100644
--- a/addons/sale_stock/data/sale_order_demo.xml
+++ b/addons/sale_stock/data/sale_order_demo.xml
@@ -35,14 +35,14 @@
<field name="product_uom_id" ref="uom.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_customizable_desk_update"/>
<field name="product_qty">65.0</field>
- <field name="location_id" ref="stock.stock_location_components"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_line_7f" model="stock.inventory.line">
<field name="product_id" ref="sale.product_product_4f"/>
<field name="product_uom_id" ref="uom.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_customizable_desk_update"/>
<field name="product_qty">70.0</field>
- <field name="location_id" ref="stock.stock_location_components"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<function model="stock.inventory" name="action_start">