diff --git a/setup/stock_route_mto/odoo/addons/stock_route_mto b/setup/stock_route_mto/odoo/addons/stock_route_mto new file mode 120000 index 000000000..591f5de08 --- /dev/null +++ b/setup/stock_route_mto/odoo/addons/stock_route_mto @@ -0,0 +1 @@ +../../../../stock_route_mto \ No newline at end of file diff --git a/setup/stock_route_mto/setup.py b/setup/stock_route_mto/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_route_mto/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_route_mto/README.rst b/stock_route_mto/README.rst new file mode 100644 index 000000000..e35bee8c4 --- /dev/null +++ b/stock_route_mto/README.rst @@ -0,0 +1,83 @@ +=============== +Stock Route Mto +=============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:e09d372076da10abf05aeaa63a7774ffbe03b9f47bca90f62c5e092266ee19fe + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_route_mto + :alt: OCA/stock-logistics-warehouse +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_route_mto + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a field 'MTO' on routes in order to be able to filter across +them. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +* Go to Inventory > Settings > Warehouse Management > Routes +* Check the MTO field on desired route(s) + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ACSONE SA/NV + +Contributors +~~~~~~~~~~~~ + +* Denis Roussel + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_route_mto/__init__.py b/stock_route_mto/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_route_mto/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_route_mto/__manifest__.py b/stock_route_mto/__manifest__.py new file mode 100644 index 000000000..7a565f68f --- /dev/null +++ b/stock_route_mto/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2022 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Stock Route Mto", + "summary": """ + Allows to identify MTO routes through a checkbox and availability to filter them.""", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "depends": ["stock"], + "data": [ + "data/stock_route.xml", + "views/stock_route.xml", + ], +} diff --git a/stock_route_mto/data/stock_route.xml b/stock_route_mto/data/stock_route.xml new file mode 100644 index 000000000..2e98a199d --- /dev/null +++ b/stock_route_mto/data/stock_route.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/stock_route_mto/i18n/it.po b/stock_route_mto/i18n/it.po new file mode 100644 index 000000000..34bc439c2 --- /dev/null +++ b/stock_route_mto/i18n/it.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_route_mto +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-11-21 13:33+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: stock_route_mto +#: model:ir.model,name:stock_route_mto.model_stock_route +msgid "Inventory Routes" +msgstr "Percorsi di inventario" + +#. module: stock_route_mto +#: model:ir.model.fields,field_description:stock_route_mto.field_stock_route__is_mto +msgid "Is Mto" +msgstr "È MTO" + +#. module: stock_route_mto +#: model:ir.model.fields,help:stock_route_mto.field_stock_route__is_mto +msgid "" +"Is a MTO (Make to Order) route. Check this if you want to identifythis route" +" as an MTO one." +msgstr "" +"È una rotta MTO (produrre su ordine). Selezionare se si vuole identificare " +"il percorso come un MTO." + +#. module: stock_route_mto +#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_search_view +#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_tree_view +msgid "MTO" +msgstr "MTO" diff --git a/stock_route_mto/i18n/stock_route_mto.pot b/stock_route_mto/i18n/stock_route_mto.pot new file mode 100644 index 000000000..b93ce4a10 --- /dev/null +++ b/stock_route_mto/i18n/stock_route_mto.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_route_mto +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_route_mto +#: model:ir.model,name:stock_route_mto.model_stock_route +msgid "Inventory Routes" +msgstr "" + +#. module: stock_route_mto +#: model:ir.model.fields,field_description:stock_route_mto.field_stock_route__is_mto +msgid "Is Mto" +msgstr "" + +#. module: stock_route_mto +#: model:ir.model.fields,help:stock_route_mto.field_stock_route__is_mto +msgid "" +"Is a MTO (Make to Order) route. Check this if you want to identifythis route" +" as an MTO one." +msgstr "" + +#. module: stock_route_mto +#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_search_view +#: model_terms:ir.ui.view,arch_db:stock_route_mto.stock_route_tree_view +msgid "MTO" +msgstr "" diff --git a/stock_route_mto/models/__init__.py b/stock_route_mto/models/__init__.py new file mode 100644 index 000000000..a0f9bedee --- /dev/null +++ b/stock_route_mto/models/__init__.py @@ -0,0 +1 @@ +from . import stock_route diff --git a/stock_route_mto/models/stock_route.py b/stock_route_mto/models/stock_route.py new file mode 100644 index 000000000..0f12d1634 --- /dev/null +++ b/stock_route_mto/models/stock_route.py @@ -0,0 +1,14 @@ +# Copyright 2022 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class StockRoute(models.Model): + + _inherit = "stock.location.route" + + is_mto = fields.Boolean( + help="Is a MTO (Make to Order) route. Check this if you want to identify" + "this route as an MTO one." + ) diff --git a/stock_route_mto/readme/CONTRIBUTORS.rst b/stock_route_mto/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..9179ee4b8 --- /dev/null +++ b/stock_route_mto/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Denis Roussel diff --git a/stock_route_mto/readme/DESCRIPTION.rst b/stock_route_mto/readme/DESCRIPTION.rst new file mode 100644 index 000000000..cc55b8581 --- /dev/null +++ b/stock_route_mto/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module adds a field 'MTO' on routes in order to be able to filter across +them. diff --git a/stock_route_mto/readme/USAGE.rst b/stock_route_mto/readme/USAGE.rst new file mode 100644 index 000000000..9331dde6f --- /dev/null +++ b/stock_route_mto/readme/USAGE.rst @@ -0,0 +1,2 @@ +* Go to Inventory > Settings > Warehouse Management > Routes +* Check the MTO field on desired route(s) diff --git a/stock_route_mto/static/description/icon.png b/stock_route_mto/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_route_mto/static/description/icon.png differ diff --git a/stock_route_mto/static/description/index.html b/stock_route_mto/static/description/index.html new file mode 100644 index 000000000..8d5547093 --- /dev/null +++ b/stock_route_mto/static/description/index.html @@ -0,0 +1,432 @@ + + + + + +Stock Route Mto + + + +
+

Stock Route Mto

+ + +

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

This module adds a field ‘MTO’ on routes in order to be able to filter across +them.

+

Table of contents

+ +
+

Usage

+
    +
  • Go to Inventory > Settings > Warehouse Management > Routes
  • +
  • Check the MTO field on desired route(s)
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/stock_route_mto/views/stock_route.xml b/stock_route_mto/views/stock_route.xml new file mode 100644 index 000000000..dac3761c2 --- /dev/null +++ b/stock_route_mto/views/stock_route.xml @@ -0,0 +1,40 @@ + + + + + + stock.location.route.form (in stock_route_mto) + stock.location.route + + + + + + + + + + stock.location.route.search (in stock_route_mto) + stock.location.route + + + + + + + + + + + stock.location.route.tree (in stock_route_mto) + stock.location.route + + + + + + + + +