diff options
| author | svs-odoo <svs@odoo.com> | 2019-08-22 09:19:29 +0000 |
|---|---|---|
| committer | svs-odoo <svs@odoo.com> | 2020-03-26 11:27:45 +0000 |
| commit | 2589d66c623d50ac2ec8b3efe4bc46bc152ead36 (patch) | |
| tree | 63c8af8de448f80694b354632a4308e9c133ac2f | |
| parent | a05b21d74bde2b242e6d85f2d1ecf3e3638fde20 (diff) | |
[IMP] mrp,stock: tracked product always have SN/LN
Before this commit, some tracked product quantities didn't have a SN/LN.
To avoid some issue at the use, it's better all demo data fulfill
requirements like that.
Task #1970460
| -rw-r--r-- | addons/mrp/data/mrp_demo.xml | 6 | ||||
| -rw-r--r-- | addons/stock/data/stock_demo.xml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/addons/mrp/data/mrp_demo.xml b/addons/mrp/data/mrp_demo.xml index d1ae2d9ffdc..606fa6c4811 100644 --- a/addons/mrp/data/mrp_demo.xml +++ b/addons/mrp/data/mrp_demo.xml @@ -485,6 +485,11 @@ <field name="product_id" ref="product.product_product_27"/> <field name="company_id" ref="base.main_company"/> </record> + <record id="lot_product_27_1" model="stock.production.lot"> + <field name="name">0000000000031</field> + <field name="product_id" ref="product.product_product_27"/> + <field name="company_id" ref="base.main_company"/> + </record> <record id="lot_product_product_drawer_drawer_0" model="stock.production.lot"> <field name="name">0000000010001</field> @@ -518,6 +523,7 @@ <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="prod_lot_id" ref="lot_product_27_1"/> <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"> diff --git a/addons/stock/data/stock_demo.xml b/addons/stock/data/stock_demo.xml index aff0e10fbb8..755f67be949 100644 --- a/addons/stock/data/stock_demo.xml +++ b/addons/stock/data/stock_demo.xml @@ -5,6 +5,11 @@ <record id="base.user_demo" model="res.users"> <field eval="[(4, ref('group_stock_user'))]" name="groups_id"/> </record> + <record id="lot_product_27" model="stock.production.lot"> + <field name="name">0000000000029</field> + <field name="product_id" ref="product.product_product_27"/> + <field name="company_id" ref="base.main_company"/> + </record> <!-- Resource: stock.inventory --> @@ -119,6 +124,7 @@ <field name="product_uom_id" ref="uom.product_uom_unit"/> <field name="inventory_id" ref="stock_inventory_0"/> <field name="product_qty">80.0</field> + <field name="prod_lot_id" ref="lot_product_27"/> <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/> </record> <record id="stock_inventory_line_14" model="stock.inventory.line"> |
