diff --git a/delivery_package_gs1_barcode_report/README.rst b/delivery_package_gs1_barcode_report/README.rst new file mode 100644 index 000000000000..8feb86bf1b7e --- /dev/null +++ b/delivery_package_gs1_barcode_report/README.rst @@ -0,0 +1,93 @@ +=================================== +Delivery package GS1 barcode report +=================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2cb3c001b136b502d6fbf0fa850a560bc7dfe426a163e4c4f8aaa595d79d7fdb + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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--barcode-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-barcode/tree/16.0/delivery_package_gs1_barcode_report + :alt: OCA/stock-logistics-barcode +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-barcode-16-0/stock-logistics-barcode-16-0-delivery_package_gs1_barcode_report + :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-barcode&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Add a new report that prints a label for each package, containing GS1 codes that contain the information about the package: weight, amount of items and SSCC tracking code. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, install it and make sure you enable the Packages setting (Settings > Operations > Packages). + +Usage +===== + +#. Create a new transfer with a product with a serial number. +#. Assign packages to the individual products in the transfer +#. On the transfer, click Print SSCC barcode label. + +A PDF report will show with GS1 barcodes describing among others the weight, SSCC code, and the amount of items in the package. + +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 +~~~~~~~ + +* Therp BV + +Contributors +~~~~~~~~~~~~ + +* `Therp BV `_: + + * Tom Blauwendraat + + +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-barcode `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/delivery_package_gs1_barcode_report/__init__.py b/delivery_package_gs1_barcode_report/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/delivery_package_gs1_barcode_report/__manifest__.py b/delivery_package_gs1_barcode_report/__manifest__.py new file mode 100644 index 000000000000..1e4e04b0c59a --- /dev/null +++ b/delivery_package_gs1_barcode_report/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2024 Therp BV . +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Delivery package GS1 barcode report", + "summary": """Print a label for outgoing stock packages, including a GS1 barcode""", + "author": "Therp BV, Odoo Community Association (OCA)", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "category": "Delivery", + "depends": [ + "delivery", + "product_expiry", + "sale_stock", + ], + "data": [ + "data/report_paperformat.xml", + "reports/report_package_barcode.xml", + "reports/stock_report_views.xml", + ], + "website": "https://github.com/OCA/stock-logistics-barcode", +} diff --git a/delivery_package_gs1_barcode_report/data/report_paperformat.xml b/delivery_package_gs1_barcode_report/data/report_paperformat.xml new file mode 100644 index 000000000000..8bd90b9a4359 --- /dev/null +++ b/delivery_package_gs1_barcode_report/data/report_paperformat.xml @@ -0,0 +1,20 @@ + + + + + A5 + + A5 + 0 + 0 + Portrait + 40 + 32 + 7 + 7 + + 35 + 90 + + + diff --git a/delivery_package_gs1_barcode_report/readme/CONFIGURE.rst b/delivery_package_gs1_barcode_report/readme/CONFIGURE.rst new file mode 100644 index 000000000000..22be71b79b86 --- /dev/null +++ b/delivery_package_gs1_barcode_report/readme/CONFIGURE.rst @@ -0,0 +1 @@ +To configure this module, install it and make sure you enable the Packages setting (Settings > Operations > Packages). diff --git a/delivery_package_gs1_barcode_report/readme/CONTRIBUTORS.rst b/delivery_package_gs1_barcode_report/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..b2e45a1087ff --- /dev/null +++ b/delivery_package_gs1_barcode_report/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Therp BV `_: + + * Tom Blauwendraat + diff --git a/delivery_package_gs1_barcode_report/readme/DESCRIPTION.rst b/delivery_package_gs1_barcode_report/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..9d65e6aef48a --- /dev/null +++ b/delivery_package_gs1_barcode_report/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Add a new report that prints a label for each package, containing GS1 codes that contain the information about the package: weight, amount of items and SSCC tracking code. diff --git a/delivery_package_gs1_barcode_report/readme/USAGE.rst b/delivery_package_gs1_barcode_report/readme/USAGE.rst new file mode 100644 index 000000000000..fcdec7444b0b --- /dev/null +++ b/delivery_package_gs1_barcode_report/readme/USAGE.rst @@ -0,0 +1,5 @@ +#. Create a new transfer with a product with a serial number. +#. Assign packages to the individual products in the transfer +#. On the transfer, click Print SSCC barcode label. + +A PDF report will show with GS1 barcodes describing among others the weight, SSCC code, and the amount of items in the package. diff --git a/delivery_package_gs1_barcode_report/reports/report_package_barcode.xml b/delivery_package_gs1_barcode_report/reports/report_package_barcode.xml new file mode 100644 index 000000000000..e03bbdfb6f94 --- /dev/null +++ b/delivery_package_gs1_barcode_report/reports/report_package_barcode.xml @@ -0,0 +1,302 @@ + + + + + + diff --git a/delivery_package_gs1_barcode_report/reports/stock_report_views.xml b/delivery_package_gs1_barcode_report/reports/stock_report_views.xml new file mode 100644 index 000000000000..de1b1692969d --- /dev/null +++ b/delivery_package_gs1_barcode_report/reports/stock_report_views.xml @@ -0,0 +1,27 @@ + + + + + GS1 Package Label + stock.picking + qweb-pdf + delivery_package_gs1_barcode_report.report_picking_packages + delivery_package_gs1_barcode_report.report_picking_packages + 'Packages - %s' % (object.name) + + report + + + + + diff --git a/delivery_package_gs1_barcode_report/static/description/index.html b/delivery_package_gs1_barcode_report/static/description/index.html new file mode 100644 index 000000000000..839971d77a46 --- /dev/null +++ b/delivery_package_gs1_barcode_report/static/description/index.html @@ -0,0 +1,441 @@ + + + + + +Delivery package GS1 barcode report + + + +
+

Delivery package GS1 barcode report

+ + +

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

+

Add a new report that prints a label for each package, containing GS1 codes that contain the information about the package: weight, amount of items and SSCC tracking code.

+

Table of contents

+ +
+

Configuration

+

To configure this module, install it and make sure you enable the Packages setting (Settings > Operations > Packages).

+
+
+

Usage

+
    +
  1. Create a new transfer with a product with a serial number.
  2. +
  3. Assign packages to the individual products in the transfer
  4. +
  5. On the transfer, click Print SSCC barcode label.
  6. +
+

A PDF report will show with GS1 barcodes describing among others the weight, SSCC code, and the amount of items in the package.

+
+
+

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

+
    +
  • Therp BV
  • +
+
+
+

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

+

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

+
+
+
+ + diff --git a/setup/delivery_package_gs1_barcode_report/odoo/addons/delivery_package_gs1_barcode_report b/setup/delivery_package_gs1_barcode_report/odoo/addons/delivery_package_gs1_barcode_report new file mode 120000 index 000000000000..8ced60cd2188 --- /dev/null +++ b/setup/delivery_package_gs1_barcode_report/odoo/addons/delivery_package_gs1_barcode_report @@ -0,0 +1 @@ +../../../../delivery_package_gs1_barcode_report \ No newline at end of file diff --git a/setup/delivery_package_gs1_barcode_report/setup.py b/setup/delivery_package_gs1_barcode_report/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/delivery_package_gs1_barcode_report/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)