mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_location_orderpoint: Add demo data to ease tests
This commit is contained in:
committed by
Michael Tietz
parent
d20e4fdc3d
commit
288c56f413
@@ -16,6 +16,10 @@
|
||||
"views/stock_location_orderpoint_views.xml",
|
||||
"views/stock_location.xml",
|
||||
"views/menu.xml",
|
||||
"demo/stock_location.xml",
|
||||
"demo/stock_picking_type.xml",
|
||||
"demo/stock_route.xml",
|
||||
"demo/stock_location_orderpoint.xml",
|
||||
],
|
||||
"depends": [
|
||||
"stock_helper",
|
||||
|
||||
17
stock_location_orderpoint/demo/stock_location.xml
Normal file
17
stock_location_orderpoint/demo/stock_location.xml
Normal 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>
|
||||
11
stock_location_orderpoint/demo/stock_location_orderpoint.xml
Normal file
11
stock_location_orderpoint/demo/stock_location_orderpoint.xml
Normal 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>
|
||||
16
stock_location_orderpoint/demo/stock_picking_type.xml
Normal file
16
stock_location_orderpoint/demo/stock_picking_type.xml
Normal 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>
|
||||
24
stock_location_orderpoint/demo/stock_route.xml
Normal file
24
stock_location_orderpoint/demo/stock_route.xml
Normal 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>
|
||||
Reference in New Issue
Block a user