Skip to content

Commit b2f50a9

Browse files
committed
Merge PR #2330 into 18.0
Signed-off-by rousseldenis
2 parents f9c7665 + c822fd3 commit b2f50a9

File tree

16 files changed

+693
-0
lines changed

16 files changed

+693
-0
lines changed

stock_route_mto/README.rst

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
===============
2+
Stock Route Mto
3+
===============
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:d7e8c3b53af2ecf938234b4157a9e87dbd935e711d6d9c740d64af4948f79998
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
20+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_route_mto
21+
:alt: OCA/stock-logistics-warehouse
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_route_mto
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module adds a field 'MTO' on routes in order to be able to filter
32+
across them.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Usage
40+
=====
41+
42+
- Go to Inventory > Settings > Warehouse Management > Routes
43+
- Check the MTO field on desired route(s)
44+
45+
Bug Tracker
46+
===========
47+
48+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
49+
In case of trouble, please check there if your issue has already been reported.
50+
If you spotted it first, help us to smash it by providing a detailed and welcomed
51+
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_route_mto%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
52+
53+
Do not contact contributors directly about support or help with technical issues.
54+
55+
Credits
56+
=======
57+
58+
Authors
59+
-------
60+
61+
* ACSONE SA/NV
62+
63+
Contributors
64+
------------
65+
66+
- Denis Roussel <denis.roussel@acsone.eu>
67+
68+
Maintainers
69+
-----------
70+
71+
This module is maintained by the OCA.
72+
73+
.. image:: https://odoo-community.org/logo.png
74+
:alt: Odoo Community Association
75+
:target: https://odoo-community.org
76+
77+
OCA, or the Odoo Community Association, is a nonprofit organization whose
78+
mission is to support the collaborative development of Odoo features and
79+
promote its widespread use.
80+
81+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_route_mto>`_ project on GitHub.
82+
83+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

stock_route_mto/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import models
2+
from .hooks import post_init_hook

stock_route_mto/__manifest__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2022 ACSONE SA/NV
2+
# Copyright 2025 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
3+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "Stock Route Mto",
7+
"summary": """
8+
Allows to identify MTO routes through a checkbox and availability to filter
9+
them.""",
10+
"version": "18.0.1.0.0",
11+
"license": "AGPL-3",
12+
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
13+
"website": "https://github.com/OCA/stock-logistics-warehouse",
14+
"depends": ["stock"],
15+
"maintainers": ["rousseldenis", "jbaudoux"],
16+
"data": [
17+
"data/stock_route.xml",
18+
"views/stock_route.xml",
19+
],
20+
"post_init_hook": "post_init_hook",
21+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!-- Copyright 2022 ACSONE SA/NV
3+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
4+
<odoo noupdate="1">
5+
<record id="stock.route_warehouse0_mto" model='stock.route'>
6+
<field name="is_mto" eval="True" />
7+
</record>
8+
</odoo>

stock_route_mto/hooks.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
2+
# Copyright 2025 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
3+
4+
5+
def post_init_hook(env):
6+
warehouses = env["stock.warehouse"].search([])
7+
mto_routes = warehouses.mto_pull_id.route_id
8+
mto_routes.is_mto = True

stock_route_mto/i18n/it.po

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_route_mto
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-11-21 13:33+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: stock_route_mto
20+
#: model:ir.model,name:stock_route_mto.model_stock_route
21+
msgid "Inventory Routes"
22+
msgstr "Percorsi di inventario"
23+
24+
#. module: stock_route_mto
25+
#: model:ir.model.fields,field_description:stock_route_mto.field_stock_route__is_mto
26+
msgid "Is Mto"
27+
msgstr "È MTO"
28+
29+
#. module: stock_route_mto
30+
#: model:ir.model.fields,help:stock_route_mto.field_stock_route__is_mto
31+
msgid ""
32+
"Is a MTO (Make to Order) route. Check this if you want to identifythis route "
33+
"as an MTO one."
34+
msgstr ""
35+
"È una rotta MTO (produrre su ordine). Selezionare se si vuole identificare "
36+
"il percorso come un MTO."
37+
38+
#. module: stock_route_mto
39+
#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_search_view
40+
#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_tree_view
41+
msgid "MTO"
42+
msgstr "MTO"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_route_mto
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: stock_route_mto
17+
#: model:ir.model,name:stock_route_mto.model_stock_route
18+
msgid "Inventory Routes"
19+
msgstr ""
20+
21+
#. module: stock_route_mto
22+
#: model:ir.model.fields,field_description:stock_route_mto.field_stock_route__is_mto
23+
msgid "Is Mto"
24+
msgstr ""
25+
26+
#. module: stock_route_mto
27+
#: model:ir.model.fields,help:stock_route_mto.field_stock_route__is_mto
28+
msgid ""
29+
"Is a MTO (Make to Order) route. Check this if you want to identifythis route"
30+
" as an MTO one."
31+
msgstr ""
32+
33+
#. module: stock_route_mto
34+
#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_search_view
35+
#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_tree_view
36+
msgid "MTO"
37+
msgstr ""

stock_route_mto/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import stock_route
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2022 ACSONE SA/NV
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class StockRoute(models.Model):
8+
_inherit = "stock.route"
9+
10+
is_mto = fields.Boolean(
11+
help="Is a MTO (Make to Order) route. Check this if you want to identify"
12+
"this route as an MTO one."
13+
)

stock_route_mto/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

0 commit comments

Comments
 (0)