diff --git a/setup/stock_quant_reservation_info_mrp/odoo/addons/stock_quant_reservation_info_mrp b/setup/stock_quant_reservation_info_mrp/odoo/addons/stock_quant_reservation_info_mrp new file mode 120000 index 000000000..7ec26e863 --- /dev/null +++ b/setup/stock_quant_reservation_info_mrp/odoo/addons/stock_quant_reservation_info_mrp @@ -0,0 +1 @@ +../../../../stock_quant_reservation_info_mrp \ No newline at end of file diff --git a/setup/stock_quant_reservation_info_mrp/setup.py b/setup/stock_quant_reservation_info_mrp/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_quant_reservation_info_mrp/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_quant_reservation_info_mrp/README.rst b/stock_quant_reservation_info_mrp/README.rst new file mode 100644 index 000000000..d3d649899 --- /dev/null +++ b/stock_quant_reservation_info_mrp/README.rst @@ -0,0 +1,83 @@ +=============================== +Stock Move Reservation Info MRP +=============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f65e6c00e15fb770807b8f7ed1f09de7b0bdbfcf6a418ab3285c719015e24a00 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/16.0/stock_quant_reservation_info_mrp + :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-16-0/stock-logistics-warehouse-16-0-stock_quant_reservation_info_mrp + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to easily find out which transfers or manufacturing orders +are reserving a product and navigate to those transfers or MOs. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Go to one product and check the quantity on hand, on that view you can see the quantity reserved and the button next to this field allows to see the manufacturing order related to reservations (if it have it). + +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 +~~~~~~~ + +* ForgeFlow + +Contributors +~~~~~~~~~~~~ + +* David Jiménez +* Lois Rilo + +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_quant_reservation_info_mrp/__init__.py b/stock_quant_reservation_info_mrp/__init__.py new file mode 100644 index 000000000..4b76c7b2d --- /dev/null +++ b/stock_quant_reservation_info_mrp/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/stock_quant_reservation_info_mrp/__manifest__.py b/stock_quant_reservation_info_mrp/__manifest__.py new file mode 100644 index 000000000..01ce136e8 --- /dev/null +++ b/stock_quant_reservation_info_mrp/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2022 ForgeFlow S.L. +# (https://www.forgeflow.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + "name": "Stock Move Reservation Info MRP", + "summary": "Allows to see the manufacturing order related to the reserved info of Products", + "version": "16.0.1.0.0", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "category": "Generic", + "depends": ["stock_quant_reservation_info", "mrp"], + "license": "AGPL-3", + "data": ["views/stock_move_line.xml"], + "installable": True, + "auto_install": True, +} diff --git a/stock_quant_reservation_info_mrp/i18n/it.po b/stock_quant_reservation_info_mrp/i18n/it.po new file mode 100644 index 000000000..eb2cea06d --- /dev/null +++ b/stock_quant_reservation_info_mrp/i18n/it.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_quant_reservation_info_mrp +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-01-15 11: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_quant_reservation_info_mrp +#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info_mrp.view_stock_move_line_reserved_info_form +#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info_mrp.view_stock_move_line_reserved_info_tree +msgid "Manufacturing Order" +msgstr "Ordine di produzione" + +#. module: stock_quant_reservation_info_mrp +#: model:ir.model,name:stock_quant_reservation_info_mrp.model_stock_move_line +msgid "Product Moves (Stock Move Line)" +msgstr "Movimenti prodotto (riga movimento di magazzino)" + +#. module: stock_quant_reservation_info_mrp +#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info_mrp.view_stock_move_line_reserved_info_tree +msgid "Related MO" +msgstr "OP relativo" + +#~ msgid "Display Name" +#~ msgstr "Nome visualizzato" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Ultima modifica il" diff --git a/stock_quant_reservation_info_mrp/i18n/stock_quant_reservation_info_mrp.pot b/stock_quant_reservation_info_mrp/i18n/stock_quant_reservation_info_mrp.pot new file mode 100644 index 000000000..73ed62487 --- /dev/null +++ b/stock_quant_reservation_info_mrp/i18n/stock_quant_reservation_info_mrp.pot @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_quant_reservation_info_mrp +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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_quant_reservation_info_mrp +#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info_mrp.view_stock_move_line_reserved_info_form +#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info_mrp.view_stock_move_line_reserved_info_tree +msgid "Manufacturing Order" +msgstr "" + +#. module: stock_quant_reservation_info_mrp +#: model:ir.model,name:stock_quant_reservation_info_mrp.model_stock_move_line +msgid "Product Moves (Stock Move Line)" +msgstr "" + +#. module: stock_quant_reservation_info_mrp +#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info_mrp.view_stock_move_line_reserved_info_tree +msgid "Related MO" +msgstr "" diff --git a/stock_quant_reservation_info_mrp/models/__init__.py b/stock_quant_reservation_info_mrp/models/__init__.py new file mode 100644 index 000000000..431f51c27 --- /dev/null +++ b/stock_quant_reservation_info_mrp/models/__init__.py @@ -0,0 +1 @@ +from . import stock_move_line diff --git a/stock_quant_reservation_info_mrp/models/stock_move_line.py b/stock_quant_reservation_info_mrp/models/stock_move_line.py new file mode 100644 index 000000000..edbd9301f --- /dev/null +++ b/stock_quant_reservation_info_mrp/models/stock_move_line.py @@ -0,0 +1,15 @@ +# Copyright 2022 ForgeFlow + +from odoo import models + + +class StockQuant(models.Model): + _inherit = "stock.move.line" + + def action_view_mrp_from_reserved(self): + action = self.env["ir.actions.act_window"]._for_xml_id( + "mrp.mrp_production_action" + ) + action["views"] = [(self.env.ref("mrp.mrp_production_form_view").id, "form")] + action["res_id"] = self.production_id.id + return action diff --git a/stock_quant_reservation_info_mrp/readme/CONTRIBUTORS.rst b/stock_quant_reservation_info_mrp/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..163495e5c --- /dev/null +++ b/stock_quant_reservation_info_mrp/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* David Jiménez +* Lois Rilo diff --git a/stock_quant_reservation_info_mrp/readme/DESCRIPTION.rst b/stock_quant_reservation_info_mrp/readme/DESCRIPTION.rst new file mode 100644 index 000000000..49a0fcb5b --- /dev/null +++ b/stock_quant_reservation_info_mrp/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows to easily find out which transfers or manufacturing orders +are reserving a product and navigate to those transfers or MOs. diff --git a/stock_quant_reservation_info_mrp/readme/USAGE.rst b/stock_quant_reservation_info_mrp/readme/USAGE.rst new file mode 100644 index 000000000..2bc99b449 --- /dev/null +++ b/stock_quant_reservation_info_mrp/readme/USAGE.rst @@ -0,0 +1 @@ +Go to one product and check the quantity on hand, on that view you can see the quantity reserved and the button next to this field allows to see the manufacturing order related to reservations (if it have it). diff --git a/stock_quant_reservation_info_mrp/static/description/icon.png b/stock_quant_reservation_info_mrp/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_quant_reservation_info_mrp/static/description/icon.png differ diff --git a/stock_quant_reservation_info_mrp/static/description/index.html b/stock_quant_reservation_info_mrp/static/description/index.html new file mode 100644 index 000000000..bbe98713d --- /dev/null +++ b/stock_quant_reservation_info_mrp/static/description/index.html @@ -0,0 +1,427 @@ + + + + + +Stock Move Reservation Info MRP + + + +
+

Stock Move Reservation Info MRP

+ + +

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

+

This module allows to easily find out which transfers or manufacturing orders +are reserving a product and navigate to those transfers or MOs.

+

Table of contents

+ +
+

Usage

+

Go to one product and check the quantity on hand, on that view you can see the quantity reserved and the button next to this field allows to see the manufacturing order related to reservations (if it have it).

+
+
+

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

+
    +
  • ForgeFlow
  • +
+
+ +
+

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_quant_reservation_info_mrp/views/stock_move_line.xml b/stock_quant_reservation_info_mrp/views/stock_move_line.xml new file mode 100644 index 000000000..0184c94d2 --- /dev/null +++ b/stock_quant_reservation_info_mrp/views/stock_move_line.xml @@ -0,0 +1,39 @@ + + + stock.move.line.tree.reserved.info.mrp + stock.move.line + + + + + + + + stock.move.line.form.reserved.info.mrp + stock.move.line + + + + + + + +