diff --git a/stock_route_mto/data/stock_route.xml b/stock_route_mto/data/stock_route.xml
index 86bd67839..2e98a199d 100644
--- a/stock_route_mto/data/stock_route.xml
+++ b/stock_route_mto/data/stock_route.xml
@@ -2,7 +2,7 @@
-
+
diff --git a/stock_route_mto/models/stock_route.py b/stock_route_mto/models/stock_route.py
index fbe97e43e..0f12d1634 100644
--- a/stock_route_mto/models/stock_route.py
+++ b/stock_route_mto/models/stock_route.py
@@ -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"
diff --git a/stock_route_mto/views/stock_route.xml b/stock_route_mto/views/stock_route.xml
index d9cf2fa0e..dac3761c2 100644
--- a/stock_route_mto/views/stock_route.xml
+++ b/stock_route_mto/views/stock_route.xml
@@ -3,9 +3,9 @@
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
-
- stock.route.form (in stock_route_mto)
- stock.route
+
+ stock.location.route.form (in stock_route_mto)
+ stock.location.route
@@ -14,9 +14,9 @@
-
- stock.route.search (in stock_route_mto)
- stock.route
+
+ stock.location.route.search (in stock_route_mto)
+ stock.location.route
@@ -26,9 +26,9 @@
-
- stock.route.tree (in stock_route_mto)
- stock.route
+
+ stock.location.route.tree (in stock_route_mto)
+ stock.location.route