diff options
| author | Aurélien Warnon <awa@odoo.com> | 2018-10-22 07:36:26 +0000 |
|---|---|---|
| committer | Aurélien Warnon <awa@odoo.com> | 2019-03-27 13:46:09 +0000 |
| commit | f8601281598180fcc509833cb8f28ea0f334ff4d (patch) | |
| tree | 424fe8b78b2f06291fde871b8274f4e6bcd87af0 /addons/sale_stock/data | |
| parent | 5091bc1df7a581e396618e8b418f9dd0f406fc43 (diff) | |
[IMP] stock: add stock for demo data: customizable desk & conf. chair
Targets commit d3530eb07e24278117ab396ecb86a59deecc312d
Purpose
=======
- The "Customizable Desk" and "Conference chair" products now have some stock in the initial inventory
to avoid the stock warning when adding these products in a SO through the product configurator.
Diffstat (limited to 'addons/sale_stock/data')
| -rw-r--r-- | addons/sale_stock/data/sale_order_demo.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/sale_stock/data/sale_order_demo.xml b/addons/sale_stock/data/sale_order_demo.xml index b1ce1cb758b..cf3d29808ca 100644 --- a/addons/sale_stock/data/sale_order_demo.xml +++ b/addons/sale_stock/data/sale_order_demo.xml @@ -26,5 +26,27 @@ <field name="warehouse_id" ref="stock.warehouse0"/> </record> + <record id="stock_inventory_customizable_desk_update" model="stock.inventory"> + <field name="name">Inventory for new Customizable Desks</field> + </record> + + <record id="stock_inventory_line_7e" model="stock.inventory.line"> + <field name="product_id" ref="sale.product_product_4e"/> + <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"/> + </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"/> + </record> + + <function model="stock.inventory" name="action_validate"> + <function eval="[[('state','=','draft'),('id', '=', ref('stock_inventory_customizable_desk_update'))]]" model="stock.inventory" name="search"/> + </function> </data> </odoo> |
