Skip to content

Commit

Permalink
Merge PR #2062 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by sebalix
  • Loading branch information
OCA-git-bot committed Sep 30, 2024
2 parents 67405aa + 3c813e1 commit c93b716
Show file tree
Hide file tree
Showing 15 changed files with 683 additions and 0 deletions.
83 changes: 83 additions & 0 deletions stock_route_mto/README.rst
Original file line number Diff line number Diff line change
@@ -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/17.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-17-0/stock-logistics-warehouse-17-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=17.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 <https://github.com/OCA/stock-logistics-warehouse/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 <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**>`_.

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

Credits
=======

Authors
-------

* ACSONE SA/NV

Contributors
------------

- Denis Roussel <denis.roussel@acsone.eu>

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 <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_route_mto>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_route_mto/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions stock_route_mto/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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": "17.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",
],
}
8 changes: 8 additions & 0 deletions stock_route_mto/data/stock_route.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- 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'>
<field name="is_mto" eval="True" />
</record>
</odoo>
42 changes: 42 additions & 0 deletions stock_route_mto/i18n/it.po
Original file line number Diff line number Diff line change
@@ -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 <stefano.consolaro@mymage.it>\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"
37 changes: 37 additions & 0 deletions stock_route_mto/i18n/stock_route_mto.pot
Original file line number Diff line number Diff line change
@@ -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 ""
1 change: 1 addition & 0 deletions stock_route_mto/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_route
13 changes: 13 additions & 0 deletions stock_route_mto/models/stock_route.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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.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."
)
3 changes: 3 additions & 0 deletions stock_route_mto/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions stock_route_mto/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Denis Roussel \<<denis.roussel@acsone.eu>\>
2 changes: 2 additions & 0 deletions stock_route_mto/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module adds a field 'MTO' on routes in order to be able to filter
across them.
2 changes: 2 additions & 0 deletions stock_route_mto/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Go to Inventory \> Settings \> Warehouse Management \> Routes
- Check the MTO field on desired route(s)
Binary file added stock_route_mto/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c93b716

Please sign in to comment.