Files
manufacture/mrp_multi_level/demo/initial_on_hand_demo.xml
Lois Rilo 019139ea96 [FIX] mrp_multi_level: demo data was failing on installation.
`product_uom_id` is not in the allowed fields for stock.quant
when in inventory mode. See `_get_inventory_fields_create` method
in stock.quant for more details.
2022-11-22 14:15:39 +01:00

43 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="stock_inventory_1" model="stock.quant">
<field name="product_id" ref="product_product_pp_1" />
<field name="inventory_quantity">10</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"
/>
</record>
<record id="stock_inventory_2" model="stock.quant">
<field name="product_id" ref="product_product_pp_2" />
<field name="inventory_quantity">20</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"
/>
</record>
<record id="stock_inventory_3" model="stock.quant">
<field name="product_id" ref="product_product_sf_2" />
<field name="inventory_quantity">15</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"
/>
</record>
<function model="stock.quant" name="action_apply_inventory">
<function
eval="[[('id', 'in', (ref('stock_inventory_1'),
ref('stock_inventory_2'),
ref('stock_inventory_3'),
))]]"
model="stock.quant"
name="search"
/>
</function>
</odoo>