diff --git a/setup/stock_picking_return_show_lot/odoo/addons/stock_picking_return_show_lot b/setup/stock_picking_return_show_lot/odoo/addons/stock_picking_return_show_lot new file mode 120000 index 000000000000..047c0e2792fc --- /dev/null +++ b/setup/stock_picking_return_show_lot/odoo/addons/stock_picking_return_show_lot @@ -0,0 +1 @@ +../../../../stock_picking_return_show_lot \ No newline at end of file diff --git a/setup/stock_picking_return_show_lot/setup.py b/setup/stock_picking_return_show_lot/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/stock_picking_return_show_lot/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_picking_return_show_lot/README.rst b/stock_picking_return_show_lot/README.rst new file mode 100644 index 000000000000..dac785d64589 --- /dev/null +++ b/stock_picking_return_show_lot/README.rst @@ -0,0 +1,78 @@ +============================= +Stock Picking Return Show Lot +============================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:63d74841d7fc5ca57c7285b297319a2aa6cca297971773433be8087879a15e4a + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_return_show_lot + :alt: OCA/stock-logistics-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_return_show_lot + :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-workflow&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to identify which lots are concerned in which moves when +launching the return wizard from a picking. + +**Table of contents** + +.. contents:: + :local: + +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 +* Mario Montes + +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-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_picking_return_show_lot/__init__.py b/stock_picking_return_show_lot/__init__.py new file mode 100644 index 000000000000..5cb1c49143f5 --- /dev/null +++ b/stock_picking_return_show_lot/__init__.py @@ -0,0 +1 @@ +from . import wizards diff --git a/stock_picking_return_show_lot/__manifest__.py b/stock_picking_return_show_lot/__manifest__.py new file mode 100644 index 000000000000..857d1689556b --- /dev/null +++ b/stock_picking_return_show_lot/__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 Picking Return Show Lot", + "summary": """ + This module allows to show lots in the picking return wizard before " + "return picking creation.""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/stock-logistics-workflow", + "depends": ["stock"], + "data": [ + "wizards/stock_return_picking.xml", + ], +} diff --git a/stock_picking_return_show_lot/i18n/stock_picking_return_show_lot.pot b/stock_picking_return_show_lot/i18n/stock_picking_return_show_lot.pot new file mode 100644 index 000000000000..0a2d441f89e4 --- /dev/null +++ b/stock_picking_return_show_lot/i18n/stock_picking_return_show_lot.pot @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_return_show_lot +# +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_picking_return_show_lot +#: model:ir.model.fields,field_description:stock_picking_return_show_lot.field_stock_return_picking_line__display_name +msgid "Display Name" +msgstr "" + +#. module: stock_picking_return_show_lot +#: model:ir.model.fields,field_description:stock_picking_return_show_lot.field_stock_return_picking_line__id +msgid "ID" +msgstr "" + +#. module: stock_picking_return_show_lot +#: model:ir.model.fields,field_description:stock_picking_return_show_lot.field_stock_return_picking_line____last_update +msgid "Last Modified on" +msgstr "" + +#. module: stock_picking_return_show_lot +#: model:ir.model,name:stock_picking_return_show_lot.model_stock_return_picking_line +msgid "Return Picking Line" +msgstr "" + +#. module: stock_picking_return_show_lot +#: model:ir.model.fields,field_description:stock_picking_return_show_lot.field_stock_return_picking_line__lot_ids +msgid "Serial Numbers" +msgstr "" diff --git a/stock_picking_return_show_lot/readme/CONTRIBUTORS.rst b/stock_picking_return_show_lot/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..f5c0bc3f77ae --- /dev/null +++ b/stock_picking_return_show_lot/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Denis Roussel +* Mario Montes diff --git a/stock_picking_return_show_lot/readme/DESCRIPTION.rst b/stock_picking_return_show_lot/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..928d9c1cae64 --- /dev/null +++ b/stock_picking_return_show_lot/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows to identify which lots are concerned in which moves when +launching the return wizard from a picking. diff --git a/stock_picking_return_show_lot/static/description/icon.png b/stock_picking_return_show_lot/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/stock_picking_return_show_lot/static/description/icon.png differ diff --git a/stock_picking_return_show_lot/static/description/index.html b/stock_picking_return_show_lot/static/description/index.html new file mode 100644 index 000000000000..90db40b48667 --- /dev/null +++ b/stock_picking_return_show_lot/static/description/index.html @@ -0,0 +1,425 @@ + + + + + +Stock Picking Return Show Lot + + + +
+

Stock Picking Return Show Lot

+ + +

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

+

This module allows to identify which lots are concerned in which moves when +launching the return wizard from a picking.

+

Table of contents

+ +
+

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-workflow project on GitHub.

+

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

+
+
+
+ + diff --git a/stock_picking_return_show_lot/wizards/__init__.py b/stock_picking_return_show_lot/wizards/__init__.py new file mode 100644 index 000000000000..664e995f0062 --- /dev/null +++ b/stock_picking_return_show_lot/wizards/__init__.py @@ -0,0 +1 @@ +from . import stock_return_picking diff --git a/stock_picking_return_show_lot/wizards/stock_return_picking.py b/stock_picking_return_show_lot/wizards/stock_return_picking.py new file mode 100644 index 000000000000..d43bcbacd7eb --- /dev/null +++ b/stock_picking_return_show_lot/wizards/stock_return_picking.py @@ -0,0 +1,11 @@ +# Copyright 2022 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class StockReturnPicking(models.TransientModel): + + _inherit = "stock.return.picking.line" + + lot_ids = fields.Many2many(comodel_name="stock.lot", related="move_id.lot_ids") diff --git a/stock_picking_return_show_lot/wizards/stock_return_picking.xml b/stock_picking_return_show_lot/wizards/stock_return_picking.xml new file mode 100644 index 000000000000..1cb770de5fb0 --- /dev/null +++ b/stock_picking_return_show_lot/wizards/stock_return_picking.xml @@ -0,0 +1,19 @@ + + + + + + stock.return.picking.form (in stock_picking_return_show_lot) + stock.return.picking + + + + + + + + +