[IMP] stock_reserve_rule: Don't rely anymore on stock.inventory model

This commit is contained in:
Denis Roussel
2023-07-14 09:39:19 +02:00
parent 2ef4a28410
commit 5f438d3e6a
2 changed files with 0 additions and 42 deletions

View File

@@ -15,7 +15,6 @@
"data/demo/product_demo.xml",
"data/demo/stock_location_demo.xml",
"data/demo/stock_reserve_rule_demo.xml",
"data/demo/stock_inventory_demo.xml",
"data/demo/stock_picking_demo.xml",
],
"data": [

View File

@@ -1,41 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="stock_inventory_1_demo" model="stock.inventory">
<field name="name">Funky Socks Demo Inventory</field>
</record>
<record id="stock_inventory_1_line_1_demo" model="stock.inventory.line">
<field name="product_id" ref="product_funky_socks" />
<field name="product_uom_id" ref="uom.product_uom_unit" />
<field name="inventory_id" ref="stock_inventory_1_demo" />
<field name="product_qty">200.0</field>
<field name="location_id" ref="stock_location_zone_a_bin_1_demo" />
</record>
<record id="stock_inventory_1_line_2_demo" model="stock.inventory.line">
<field name="product_id" ref="product_funky_socks" />
<field name="product_uom_id" ref="uom.product_uom_unit" />
<field name="inventory_id" ref="stock_inventory_1_demo" />
<field name="product_qty">100.0</field>
<field name="location_id" ref="stock_location_zone_b_bin_1_demo" />
</record>
<record id="stock_inventory_1_line_3_demo" model="stock.inventory.line">
<field name="product_id" ref="product_funky_socks" />
<field name="product_uom_id" ref="uom.product_uom_unit" />
<field name="inventory_id" ref="stock_inventory_1_demo" />
<field name="product_qty">100.0</field>
<field name="location_id" ref="stock_location_zone_c_bin_1_demo" />
</record>
<function model="stock.inventory" name="_action_start">
<function
eval="[[('state','=','draft'),('id', '=', ref('stock_reserve_rule.stock_inventory_1_demo'))]]"
model="stock.inventory"
name="search"
/>
</function>
<function model="stock.inventory" name="action_validate">
<function
eval="[[('state','=','confirm'),('id', '=', ref('stock_reserve_rule.stock_inventory_1_demo'))]]"
model="stock.inventory"
name="search"
/>
</function>
</odoo>