diff --git a/setup/stock_picking_report_external_note/odoo/addons/stock_picking_report_external_note b/setup/stock_picking_report_external_note/odoo/addons/stock_picking_report_external_note new file mode 120000 index 0000000..961b4f5 --- /dev/null +++ b/setup/stock_picking_report_external_note/odoo/addons/stock_picking_report_external_note @@ -0,0 +1 @@ +../../../../stock_picking_report_external_note \ No newline at end of file diff --git a/setup/stock_picking_report_external_note/setup.py b/setup/stock_picking_report_external_note/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/stock_picking_report_external_note/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_picking_report_external_note/README.rst b/stock_picking_report_external_note/README.rst new file mode 100644 index 0000000..859d377 --- /dev/null +++ b/stock_picking_report_external_note/README.rst @@ -0,0 +1,99 @@ +================================== +Stock Picking Report External Note +================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:074177c68065fb08420562308c2b01a7c826c4eefad03730566af5609807ae4e + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |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--reporting-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_picking_report_external_note + :alt: OCA/stock-logistics-reporting +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_external_note + :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-reporting&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of stock picking to support external notes +and to allow you to display them in the external reports. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +#. Go to stock picking +#. Fill *External notes* field on the Notes tab +#. Print the Delivery Slip report and check that *External notes* has been printed + +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 +~~~~~~~ + +* Moduon + +Contributors +~~~~~~~~~~~~ + +* Eduardo de Miguel (`Moduon `__) + +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. + +.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px + :target: https://github.com/Shide + :alt: Shide + +Current `maintainer `__: + +|maintainer-Shide| + +This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_picking_report_external_note/__init__.py b/stock_picking_report_external_note/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/stock_picking_report_external_note/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_picking_report_external_note/__manifest__.py b/stock_picking_report_external_note/__manifest__.py new file mode 100644 index 0000000..d6f79ab --- /dev/null +++ b/stock_picking_report_external_note/__manifest__.py @@ -0,0 +1,23 @@ +# Copyright 2023 Moduon Team S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +{ + "name": "Stock Picking Report External Note", + "summary": "Adds a note in Stock Picking shown on external reports like Delivery Slip", + "version": "16.0.1.0.0", + "development_status": "Alpha", + "category": "Inventory/Delivery", + "website": "https://github.com/OCA/stock-logistics-reporting", + "author": "Moduon, Odoo Community Association (OCA)", + "maintainers": ["Shide"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "stock", + ], + "data": [ + "report/report_deliveryslip.xml", + "views/stock_picking_views.xml", + ], +} diff --git a/stock_picking_report_external_note/i18n/es.po b/stock_picking_report_external_note/i18n/es.po new file mode 100644 index 0000000..570ebe0 --- /dev/null +++ b/stock_picking_report_external_note/i18n/es.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_report_external_note +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-03-23 09:00+0000\n" +"PO-Revision-Date: 2023-03-23 10:01+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 3.1.1\n" + +#. module: stock_picking_report_external_note +#: model_terms:ir.ui.view,arch_db:stock_picking_report_external_note.view_picking_form +msgid "Add an external note that will be printed on the Delivery Slip report" +msgstr "" +"Añade una nota externa que será impresa en el informe de Albarán de entrega" + +#. module: stock_picking_report_external_note +#: model:ir.model.fields,field_description:stock_picking_report_external_note.field_stock_picking__external_note +msgid "External Note" +msgstr "Nota externa" + +#. module: stock_picking_report_external_note +#: model:ir.model.fields,help:stock_picking_report_external_note.field_stock_picking__external_note +msgid "External note to be printed in external reports like Delivery Slip" +msgstr "" +"Nota externa que será impresa en los informes externos como el Albarán de " +"entrega" + +#. module: stock_picking_report_external_note +#: model:ir.model,name:stock_picking_report_external_note.model_stock_picking +msgid "Transfer" +msgstr "Albarán" + +#~ msgid "Note" +#~ msgstr "Nota" diff --git a/stock_picking_report_external_note/i18n/stock_picking_report_external_note.pot b/stock_picking_report_external_note/i18n/stock_picking_report_external_note.pot new file mode 100644 index 0000000..7248dfa --- /dev/null +++ b/stock_picking_report_external_note/i18n/stock_picking_report_external_note.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_report_external_note +# +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_report_external_note +#: model_terms:ir.ui.view,arch_db:stock_picking_report_external_note.view_picking_form +msgid "Add an external note that will be printed on the Delivery Slip report" +msgstr "" + +#. module: stock_picking_report_external_note +#: model:ir.model.fields,field_description:stock_picking_report_external_note.field_stock_picking__external_note +msgid "External Note" +msgstr "" + +#. module: stock_picking_report_external_note +#: model:ir.model.fields,help:stock_picking_report_external_note.field_stock_picking__external_note +msgid "External note to be printed in external reports like Delivery Slip" +msgstr "" + +#. module: stock_picking_report_external_note +#: model:ir.model,name:stock_picking_report_external_note.model_stock_picking +msgid "Transfer" +msgstr "" diff --git a/stock_picking_report_external_note/models/__init__.py b/stock_picking_report_external_note/models/__init__.py new file mode 100644 index 0000000..ae4c272 --- /dev/null +++ b/stock_picking_report_external_note/models/__init__.py @@ -0,0 +1 @@ +from . import stock_picking diff --git a/stock_picking_report_external_note/models/stock_picking.py b/stock_picking_report_external_note/models/stock_picking.py new file mode 100644 index 0000000..157cc3d --- /dev/null +++ b/stock_picking_report_external_note/models/stock_picking.py @@ -0,0 +1,13 @@ +# Copyright 2023 Moduon Team S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + + +from odoo import fields, models + + +class StockPicking(models.Model): + _inherit = "stock.picking" + + external_note = fields.Html( + help="External note to be printed in external reports like Delivery Slip", + ) diff --git a/stock_picking_report_external_note/readme/CONTRIBUTORS.rst b/stock_picking_report_external_note/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..73c0719 --- /dev/null +++ b/stock_picking_report_external_note/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Eduardo de Miguel (`Moduon `__) diff --git a/stock_picking_report_external_note/readme/DESCRIPTION.rst b/stock_picking_report_external_note/readme/DESCRIPTION.rst new file mode 100644 index 0000000..14e9955 --- /dev/null +++ b/stock_picking_report_external_note/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module extends the functionality of stock picking to support external notes +and to allow you to display them in the external reports. diff --git a/stock_picking_report_external_note/readme/USAGE.rst b/stock_picking_report_external_note/readme/USAGE.rst new file mode 100644 index 0000000..f070124 --- /dev/null +++ b/stock_picking_report_external_note/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: + +#. Go to stock picking +#. Fill *External notes* field on the Notes tab +#. Print the Delivery Slip report and check that *External notes* has been printed diff --git a/stock_picking_report_external_note/report/report_deliveryslip.xml b/stock_picking_report_external_note/report/report_deliveryslip.xml new file mode 100644 index 0000000..14c809f --- /dev/null +++ b/stock_picking_report_external_note/report/report_deliveryslip.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/stock_picking_report_external_note/static/description/icon.png b/stock_picking_report_external_note/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/stock_picking_report_external_note/static/description/icon.png differ diff --git a/stock_picking_report_external_note/static/description/icon.svg b/stock_picking_report_external_note/static/description/icon.svg new file mode 100644 index 0000000..a7a26d0 --- /dev/null +++ b/stock_picking_report_external_note/static/description/icon.svg @@ -0,0 +1,79 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/stock_picking_report_external_note/static/description/index.html b/stock_picking_report_external_note/static/description/index.html new file mode 100644 index 0000000..ece7a42 --- /dev/null +++ b/stock_picking_report_external_note/static/description/index.html @@ -0,0 +1,442 @@ + + + + + +Stock Picking Report External Note + + + +
+

Stock Picking Report External Note

+ + +

Alpha License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

+

This module extends the functionality of stock picking to support external notes +and to allow you to display them in the external reports.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to stock picking
  2. +
  3. Fill External notes field on the Notes tab
  4. +
  5. Print the Delivery Slip report and check that External notes has been printed
  6. +
+
+
+

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

+
    +
  • Moduon
  • +
+
+
+

Contributors

+
    +
  • Eduardo de Miguel (Moduon)
  • +
+
+
+

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.

+

Current maintainer:

+

Shide

+

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

+

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

+
+
+
+ + diff --git a/stock_picking_report_external_note/views/stock_picking_views.xml b/stock_picking_report_external_note/views/stock_picking_views.xml new file mode 100644 index 0000000..5d7e768 --- /dev/null +++ b/stock_picking_report_external_note/views/stock_picking_views.xml @@ -0,0 +1,22 @@ + + + + + stock.picking.external.note.form + stock.picking + + + + + + + + +