diff --git a/setup/stock_release_channel_plan_depot/odoo/addons/stock_release_channel_plan_depot b/setup/stock_release_channel_plan_depot/odoo/addons/stock_release_channel_plan_depot new file mode 120000 index 0000000000..a30aae6046 --- /dev/null +++ b/setup/stock_release_channel_plan_depot/odoo/addons/stock_release_channel_plan_depot @@ -0,0 +1 @@ +../../../../stock_release_channel_plan_depot \ No newline at end of file diff --git a/setup/stock_release_channel_plan_depot/setup.py b/setup/stock_release_channel_plan_depot/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/stock_release_channel_plan_depot/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_release_channel_plan_depot/README.rst b/stock_release_channel_plan_depot/README.rst new file mode 100644 index 0000000000..aeaf446817 --- /dev/null +++ b/stock_release_channel_plan_depot/README.rst @@ -0,0 +1,74 @@ +================================ +Stock Release Channel Plan Depot +================================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fwms-lightgray.png?logo=github + :target: https://github.com/OCA/wms/tree/16.0/stock_release_channel_plan_depot + :alt: OCA/wms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-stock_release_channel_plan_depot + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/wms&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Add partner depot to stock release channel preparation plan + +**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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Telmo Santos +* Jacques-Etienne Baudoux + +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/wms `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_release_channel_plan_depot/__init__.py b/stock_release_channel_plan_depot/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/stock_release_channel_plan_depot/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_release_channel_plan_depot/__manifest__.py b/stock_release_channel_plan_depot/__manifest__.py new file mode 100644 index 0000000000..12945c0a1c --- /dev/null +++ b/stock_release_channel_plan_depot/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2024 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Stock Release Channel Plan Depot", + "summary": """This module allows users to set partner depot on + stock release channel preparation plan.""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "Camptocamp, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/wms", + "depends": ["stock_depot", "stock_release_channel_plan"], + "data": [ + "views/stock_release_channel_preparation_plan.xml", + ], +} diff --git a/stock_release_channel_plan_depot/i18n/fr.po b/stock_release_channel_plan_depot/i18n/fr.po new file mode 100644 index 0000000000..9eabceef48 --- /dev/null +++ b/stock_release_channel_plan_depot/i18n/fr.po @@ -0,0 +1,21 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_release_channel_plan_depot +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-07-04 06:21+0000\n" +"PO-Revision-Date: 2024-07-04 06:21+0000\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_release_channel_plan_depot +#: model:ir.model.fields,field_description:stock_release_channel_plan_depot.field_stock_release_channel_preparation_plan__depot_id +msgid "Depot" +msgstr "Dépôt" diff --git a/stock_release_channel_plan_depot/i18n/stock_release_channel_plan_depot.pot b/stock_release_channel_plan_depot/i18n/stock_release_channel_plan_depot.pot new file mode 100644 index 0000000000..55517e5db4 --- /dev/null +++ b/stock_release_channel_plan_depot/i18n/stock_release_channel_plan_depot.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_release_channel_plan_depot +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-07-04 06:21+0000\n" +"PO-Revision-Date: 2024-07-04 06:21+0000\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_release_channel_plan_depot +#: model:ir.model.fields,field_description:stock_release_channel_plan_depot.field_stock_release_channel_preparation_plan__depot_id +msgid "Depot" +msgstr "" + +#. module: stock_release_channel_plan_depot +#: model:ir.model,name:stock_release_channel_plan_depot.model_stock_release_channel_preparation_plan +msgid "Stock Release Channel Preparation Plan" +msgstr "" diff --git a/stock_release_channel_plan_depot/models/__init__.py b/stock_release_channel_plan_depot/models/__init__.py new file mode 100644 index 0000000000..57926ea54c --- /dev/null +++ b/stock_release_channel_plan_depot/models/__init__.py @@ -0,0 +1 @@ +from . import stock_release_channel_preparation_plan diff --git a/stock_release_channel_plan_depot/models/stock_release_channel_preparation_plan.py b/stock_release_channel_plan_depot/models/stock_release_channel_preparation_plan.py new file mode 100644 index 0000000000..9a4e30b5fb --- /dev/null +++ b/stock_release_channel_plan_depot/models/stock_release_channel_preparation_plan.py @@ -0,0 +1,10 @@ +# Copyright 2024 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class StockReleaseChannelPreparationPlan(models.Model): + _inherit = "stock.release.channel.preparation.plan" + + depot_id = fields.Many2one("stock.depot") diff --git a/stock_release_channel_plan_depot/readme/CONTRIBUTORS.rst b/stock_release_channel_plan_depot/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..22612a2500 --- /dev/null +++ b/stock_release_channel_plan_depot/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Telmo Santos +* Jacques-Etienne Baudoux diff --git a/stock_release_channel_plan_depot/readme/DESCRIPTION.rst b/stock_release_channel_plan_depot/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..99ae5360d3 --- /dev/null +++ b/stock_release_channel_plan_depot/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Add partner depot to stock release channel preparation plan diff --git a/stock_release_channel_plan_depot/static/description/index.html b/stock_release_channel_plan_depot/static/description/index.html new file mode 100644 index 0000000000..d880896dba --- /dev/null +++ b/stock_release_channel_plan_depot/static/description/index.html @@ -0,0 +1,420 @@ + + + + + + +Stock Release Channel Plan Depot + + + +
+

Stock Release Channel Plan Depot

+ + +

Beta License: AGPL-3 OCA/wms Translate me on Weblate Try me on Runboat

+

Add partner depot to stock release channel preparation plan

+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

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

+

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

+
+
+
+ + diff --git a/stock_release_channel_plan_depot/views/stock_release_channel_preparation_plan.xml b/stock_release_channel_plan_depot/views/stock_release_channel_preparation_plan.xml new file mode 100644 index 0000000000..d0133fee2f --- /dev/null +++ b/stock_release_channel_plan_depot/views/stock_release_channel_preparation_plan.xml @@ -0,0 +1,44 @@ + + + + + stock.release.channel.preparation.plan.form (in stock_release_channel_plan_depot) + stock.release.channel.preparation.plan + + + + + + + + + + + + + + + stock.release.channel.preparation.plan.tree (in stock_release_channel_plan_depot) + stock.release.channel.preparation.plan + + + + + + + + + diff --git a/test-requirements.txt b/test-requirements.txt index 689482e20d..82f5d654f2 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,2 +1,3 @@ vcrpy-unittest odoo_test_helper +odoo-addon-stock-depot @ git+https://github.com/OCA/stock-logistics-transport.git@refs/pull/131/head#subdirectory=setup/stock_depot