mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
44 lines
1.7 KiB
XML
44 lines
1.7 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="product_uom_id" ref="uom.product_uom_unit" />
|
|
<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="product_uom_id" ref="uom.product_uom_unit" />
|
|
<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="product_uom_id" ref="uom.product_uom_unit" />
|
|
<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>
|