summaryrefslogtreecommitdiff
path: root/addons/mrp/data/mrp_demo.xml
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/mrp/data/mrp_demo.xml
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/mrp/data/mrp_demo.xml')
-rw-r--r--addons/mrp/data/mrp_demo.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/mrp/data/mrp_demo.xml b/addons/mrp/data/mrp_demo.xml
index 6779bd97b66..d1ae2d9ffdc 100644
--- a/addons/mrp/data/mrp_demo.xml
+++ b/addons/mrp/data/mrp_demo.xml
@@ -511,14 +511,14 @@
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">50</field>
<field name="prod_lot_id" ref="lot_product_27_0"/>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_drawer_lot1" model="stock.inventory.line">
<field name="product_id" ref="product.product_product_27"/>
<field name="product_uom_id" ref="uom.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">40</field>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_line_product_drawer_drawer" model="stock.inventory.line">
<field name="product_id" ref="product_product_drawer_drawer"/>
@@ -526,7 +526,7 @@
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">50</field>
<field name="prod_lot_id" ref="lot_product_product_drawer_drawer_0"/>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_line_product_drawer_case" model="stock.inventory.line">
<field name="product_id" ref="product_product_drawer_case"/>
@@ -534,7 +534,7 @@
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">50</field>
<field name="prod_lot_id" ref="lot_product_product_drawer_case_0"/>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_line_product_wood_panel" model="stock.inventory.line">
@@ -542,28 +542,28 @@
<field name="product_uom_id" ref="uom.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">50</field>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_line_product_ply" model="stock.inventory.line">
<field name="product_id" ref="product_product_wood_ply"/>
<field name="product_uom_id" ref="uom.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">20</field>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_line_product_wear" model="stock.inventory.line">
<field name="product_id" ref="product_product_wood_wear"/>
<field name="product_uom_id" ref="uom.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">30</field>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<record id="stock_inventory_line_product_table_kit" model="stock.inventory.line">
<field name="product_id" ref="product_product_table_kit"/>
<field name="product_uom_id" ref="uom.product_uom_unit"/>
<field name="inventory_id" ref="stock_inventory_drawer"/>
<field name="product_qty">30</field>
- <field name="location_id" ref="stock.stock_location_14"/>
+ <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<function model="stock.inventory" name="_action_done">