From fea1f233142ad9b4c359caf0274329e97590c987 Mon Sep 17 00:00:00 2001 From: Unai Beristain Date: Mon, 20 Jan 2025 13:33:00 +0100 Subject: [PATCH] [ADD] delivery_package_number_report: Add number_of_packages field in report --- delivery_package_number_report/README.rst | 68 +++++++++++++++++++ delivery_package_number_report/__init__.py | 0 .../__manifest__.py | 14 ++++ delivery_package_number_report/i18n/ca_ES.po | 21 ++++++ delivery_package_number_report/i18n/es.po | 21 ++++++ .../delivery_package_number_report_view.xml | 13 ++++ .../addons/delivery_package_number_report | 1 + setup/delivery_package_number_report/setup.py | 6 ++ 8 files changed, 144 insertions(+) create mode 100644 delivery_package_number_report/README.rst create mode 100644 delivery_package_number_report/__init__.py create mode 100644 delivery_package_number_report/__manifest__.py create mode 100644 delivery_package_number_report/i18n/ca_ES.po create mode 100644 delivery_package_number_report/i18n/es.po create mode 100644 delivery_package_number_report/views/delivery_package_number_report_view.xml create mode 120000 setup/delivery_package_number_report/odoo/addons/delivery_package_number_report create mode 100644 setup/delivery_package_number_report/setup.py diff --git a/delivery_package_number_report/README.rst b/delivery_package_number_report/README.rst new file mode 100644 index 0000000000..475d43eb3c --- /dev/null +++ b/delivery_package_number_report/README.rst @@ -0,0 +1,68 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg + :target: https://opensource.org/licenses/LGPL-3.0 + :alt: License: LGPL-3 + +======================================================== +Delivery Package Number Report +======================================================== + +Overview +======== + +The **Delivery Package Number Report** module enhances the existing **Stock Report Delivery Document** view by adding a new field to display the number of packages in the report. This is useful for tracking and reporting the number of packages associated with delivery moves. + +Features +======== + +- **Add Number of Packages**: + - Modifies the `stock.report_delivery_document` view to include a field showing the number of packages associated with a stock move line. + +- **Integration with Delivery Package Number**: + - Leverages the **Delivery Package Number** module for the `number_of_packages` field. + +Usage +===== + +1. **Install the Module**: + - Install the **Delivery Package Number Report** module via the Apps menu. + +2. **View the Report**: + - Navigate to the stock report view for delivery documents. + - The new `Number of Packages` field will be visible in the report. + +3. **Use Case**: + - This module is particularly useful for organizations that need to track the number of packages involved in their stock moves, especially when dealing with deliveries. + +Configuration +============= + +No specific configuration is required for this module. It will automatically modify the `stock.report_delivery_document` view to include the new `number_of_packages` field. + +Testing +======= + +Test the following to ensure the module works as intended: + +- Verify that the `number_of_packages` field appears correctly in the stock delivery document report. +- Ensure the field reflects the correct data from the **Delivery Package Number** module. + +Bug Tracker +=========== + +If you encounter any issues, please report them on the GitHub repository at `GitHub Issues `_. + +Credits +======= + +Contributors +------------ + +* Ana Juaristi +* Unai Beristain + +For specific questions regarding this module, please contact the contributors. For support, please use the official issue tracker. + +License +======= + +This project is licensed under the LGPL-3 License. For more details, refer to the LICENSE file or visit . diff --git a/delivery_package_number_report/__init__.py b/delivery_package_number_report/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/delivery_package_number_report/__manifest__.py b/delivery_package_number_report/__manifest__.py new file mode 100644 index 0000000000..915e062251 --- /dev/null +++ b/delivery_package_number_report/__manifest__.py @@ -0,0 +1,14 @@ +{ + "name": "Delivery Package Number Report", + "version": "16.0.1.0.0", + "category": "Stock", + "author": "Avanzosc", + "license": "LGPL-3", + "depends": ["stock", "delivery_package_number"], + "data": [ + "views/delivery_package_number_report_view.xml", + ], + "installable": True, + "application": False, + "website": "https://github.com/avanzosc/odoo-addons", +} diff --git a/delivery_package_number_report/i18n/ca_ES.po b/delivery_package_number_report/i18n/ca_ES.po new file mode 100644 index 0000000000..418411dc0c --- /dev/null +++ b/delivery_package_number_report/i18n/ca_ES.po @@ -0,0 +1,21 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * delivery_package_number_report +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-01-20 16:36+0000\n" +"PO-Revision-Date: 2025-01-20 16:36+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: delivery_package_number_report +#: model_terms:ir.ui.view,arch_db:delivery_package_number_report.delivery_package_number_report_inherit +msgid "Packages:" +msgstr "Paquets:" diff --git a/delivery_package_number_report/i18n/es.po b/delivery_package_number_report/i18n/es.po new file mode 100644 index 0000000000..2699b41b5e --- /dev/null +++ b/delivery_package_number_report/i18n/es.po @@ -0,0 +1,21 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * delivery_package_number_report +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-01-20 14:17+0000\n" +"PO-Revision-Date: 2025-01-20 14:17+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: delivery_package_number_report +#: model_terms:ir.ui.view,arch_db:delivery_package_number_report.delivery_package_number_report_inherit +msgid "Packages:" +msgstr "Bultos:" \ No newline at end of file diff --git a/delivery_package_number_report/views/delivery_package_number_report_view.xml b/delivery_package_number_report/views/delivery_package_number_report_view.xml new file mode 100644 index 0000000000..88a0e95dc4 --- /dev/null +++ b/delivery_package_number_report/views/delivery_package_number_report_view.xml @@ -0,0 +1,13 @@ + + + + diff --git a/setup/delivery_package_number_report/odoo/addons/delivery_package_number_report b/setup/delivery_package_number_report/odoo/addons/delivery_package_number_report new file mode 120000 index 0000000000..91cc8f3039 --- /dev/null +++ b/setup/delivery_package_number_report/odoo/addons/delivery_package_number_report @@ -0,0 +1 @@ +../../../../delivery_package_number_report \ No newline at end of file diff --git a/setup/delivery_package_number_report/setup.py b/setup/delivery_package_number_report/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/delivery_package_number_report/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)