[IMP] stock_location_orderpoint: Add demo data to ease tests

This commit is contained in:
Denis Roussel
2023-04-18 11:57:23 +02:00
committed by Michael Tietz
parent d20e4fdc3d
commit 288c56f413
5 changed files with 72 additions and 0 deletions

View File

@@ -16,6 +16,10 @@
"views/stock_location_orderpoint_views.xml", "views/stock_location_orderpoint_views.xml",
"views/stock_location.xml", "views/stock_location.xml",
"views/menu.xml", "views/menu.xml",
"demo/stock_location.xml",
"demo/stock_picking_type.xml",
"demo/stock_route.xml",
"demo/stock_location_orderpoint.xml",
], ],
"depends": [ "depends": [
"stock_helper", "stock_helper",

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="stock_location_replenish_view" model="stock.location">
<field name="name">Replenishment Zone</field>
<field
name="location_id"
model="stock.location"
eval="obj().env.ref('stock.stock_location_stock').location_id"
/>
</record>
<record id="stock_location_replenish" model="stock.location">
<field name="name">Replenishment Stock</field>
<field name="location_id" ref="stock_location_replenish_view" />
</record>
</odoo>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="stock_location_orderpoint_1" model="stock.location.orderpoint">
<field name="location_id" ref="stock.stock_location_stock" />
<field name="route_id" ref="stock_route_replenish" />
<field name="trigger">auto</field>
<field name="replenish_method">fill_up</field>
</record>
</odoo>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="stock_picking_type_replenish" model="stock.picking.type">
<field name="name">Replenishments</field>
<field name="code">internal</field>
<field name="default_location_dest_id" ref="stock.stock_location_stock" />
<field
name="default_location_src_id"
ref="stock_location_orderpoint.stock_location_replenish"
/>
<field name="warehouse_id" ref="stock.warehouse0" />
<field name="sequence_code">SRE</field>
</record>
</odoo>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="stock_route_replenish" model="stock.location.route">
<field name="name">Replenishment Route</field>
<field name="product_selectable" eval="False" />
</record>
<record id="stock_rule_replenish" model="stock.rule">
<field name="name">Replenishment Rule</field>
<field
name="location_src_id"
ref="stock_location_orderpoint.stock_location_replenish"
/>
<field name="location_id" ref="stock.stock_location_stock" />
<field name="route_id" ref="stock_location_orderpoint.stock_route_replenish" />
<field
name="picking_type_id"
ref="stock_location_orderpoint.stock_picking_type_replenish"
/>
<field name="action">pull</field>
</record>
</odoo>