mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_reserve_rule: Don't rely anymore on stock.inventory model
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user