mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[14.0][MIG] stock_route_mto: Backporting to 14.0 from 16.0
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!-- Copyright 2022 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
||||
<odoo noupdate="1">
|
||||
<record id="stock.route_warehouse0_mto" model='stock.route'>
|
||||
<record id="stock.route_warehouse0_mto" model='stock.location.route'>
|
||||
<field name="is_mto" eval="True" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
@@ -6,7 +6,7 @@ from odoo import fields, models
|
||||
|
||||
class StockRoute(models.Model):
|
||||
|
||||
_inherit = "stock.route"
|
||||
_inherit = "stock.location.route"
|
||||
|
||||
is_mto = fields.Boolean(
|
||||
help="Is a MTO (Make to Order) route. Check this if you want to identify"
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
|
||||
<record model="ir.ui.view" id="stock_route_form_view">
|
||||
<field name="name">stock.route.form (in stock_route_mto)</field>
|
||||
<field name="model">stock.route</field>
|
||||
<record model="ir.ui.view" id="stock_location_route_form_view">
|
||||
<field name="name">stock.location.route.form (in stock_route_mto)</field>
|
||||
<field name="model">stock.location.route</field>
|
||||
<field name="inherit_id" ref="stock.stock_location_route_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="active" position="after">
|
||||
@@ -14,9 +14,9 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="stock_route_search_view">
|
||||
<field name="name">stock.route.search (in stock_route_mto)</field>
|
||||
<field name="model">stock.route</field>
|
||||
<record model="ir.ui.view" id="stock_location_route_search_view">
|
||||
<field name="name">stock.location.route.search (in stock_route_mto)</field>
|
||||
<field name="model">stock.location.route</field>
|
||||
<field name="inherit_id" ref="stock.stock_location_route_view_search" />
|
||||
<field name="arch" type="xml">
|
||||
<filter name="inactive" position="after">
|
||||
@@ -26,9 +26,9 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="stock_route_tree_view">
|
||||
<field name="name">stock.route.tree (in stock_route_mto)</field>
|
||||
<field name="model">stock.route</field>
|
||||
<record model="ir.ui.view" id="stock_location_route_tree_view">
|
||||
<field name="name">stock.location.route.tree (in stock_route_mto)</field>
|
||||
<field name="model">stock.location.route</field>
|
||||
<field name="inherit_id" ref="stock.stock_location_route_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="active" position="after">
|
||||
|
||||
Reference in New Issue
Block a user