diff --git a/lrm_product_custom/README.rst b/lrm_product_custom/README.rst new file mode 100644 index 0000000..2c56f71 --- /dev/null +++ b/lrm_product_custom/README.rst @@ -0,0 +1,73 @@ +================== +Lrm Product Custom +================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2b895a8364649640178dc7927ae512e65320159d8522879718c60bd093a84c55 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-Escodoo%2Flrm--addons-lightgray.png?logo=github + :target: https://github.com/Escodoo/lrm-addons/tree/14.0/lrm_product_custom + :alt: Escodoo/lrm-addons + +|badge1| |badge2| |badge3| + +This module create a new product label report. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: +- Open the `product.template` or `product.product` tree or form view. +- Click on the "Print" button. +- Select the new "Product Label" report and export to PDF. +- The PDF will have the dimensions 30mm X 60mm. +- Fill in the "Internal Reference" and "Barcode" fields to see them in the report. + +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 +~~~~~~~ + +* Escodoo + +Contributors +~~~~~~~~~~~~ + +* `Escodoo `_: + + * Marcel Savegnago + * Wesley Oliveira + +Maintainers +~~~~~~~~~~~ + +This module is part of the `Escodoo/lrm-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/lrm_product_custom/__init__.py b/lrm_product_custom/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/lrm_product_custom/__manifest__.py b/lrm_product_custom/__manifest__.py new file mode 100644 index 0000000..f4c990c --- /dev/null +++ b/lrm_product_custom/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2024 - TODAY, Escodoo +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Lrm Product Custom", + "summary": """ + LRM Product Custom""", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "Escodoo", + "website": "https://github.com/Escodoo/lrm-addons", + "depends": ["product"], + "data": [ + "report/product_reports.xml", + "report/product_templates.xml", + ], +} diff --git a/lrm_product_custom/i18n/lrm_product_custom.pot b/lrm_product_custom/i18n/lrm_product_custom.pot new file mode 100644 index 0000000..934f73b --- /dev/null +++ b/lrm_product_custom/i18n/lrm_product_custom.pot @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * lrm_product_custom +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-01-08 16:24+0000\n" +"PO-Revision-Date: 2025-01-08 16:24+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: lrm_product_custom +#: model:ir.actions.report,print_report_name:lrm_product_custom.action_report_product_product_label +#: model:ir.actions.report,print_report_name:lrm_product_custom.action_report_product_template_label +msgid "'Products Labels - %s' % (object.name)" +msgstr "" + +#. module: lrm_product_custom +#: model_terms:ir.ui.view,arch_db:lrm_product_custom.report_product_label_custom +msgid "No barcode available" +msgstr "" + +#. module: lrm_product_custom +#: model_terms:ir.ui.view,arch_db:lrm_product_custom.report_product_label_custom +msgid "No internal reference available" +msgstr "" + +#. module: lrm_product_custom +#: model_terms:ir.ui.view,arch_db:lrm_product_custom.report_product_label_custom +msgid "Barcode" +msgstr "" + +#. module: lrm_product_custom +#: model:ir.actions.report,name:lrm_product_custom.action_report_product_product_label +#: model:ir.actions.report,name:lrm_product_custom.action_report_product_template_label +msgid "Product Label" +msgstr "" diff --git a/lrm_product_custom/i18n/pt_BR.po b/lrm_product_custom/i18n/pt_BR.po new file mode 100644 index 0000000..4dc1145 --- /dev/null +++ b/lrm_product_custom/i18n/pt_BR.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * lrm_product_custom +# +# Translators: +# Wesley Oliveira , 2025 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-01-08 10:24+0000\n" +"PO-Revision-Date: 2025-01-08 10:24+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: lrm_product_custom +#: model:ir.actions.report,print_report_name:lrm_product_custom.action_report_product_product_label +#: model:ir.actions.report,print_report_name:lrm_product_custom.action_report_product_template_label +msgid "'Products Labels - %s' % (object.name)" +msgstr "Etiquetas de Produto - %s' % (object.name)" + +#. module: lrm_product_custom +#: model_terms:ir.ui.view,arch_db:lrm_product_custom.report_product_label_custom +msgid "No barcode available" +msgstr "Nenhum código de barras disponivel" + +#. module: lrm_product_custom +#: model_terms:ir.ui.view,arch_db:lrm_product_custom.report_product_label_custom +msgid "No internal reference available" +msgstr "Nenhuma referência interna disponivel" + +#. module: lrm_product_custom +#: model_terms:ir.ui.view,arch_db:lrm_product_custom.report_product_label_custom +msgid "Barcode" +msgstr "Código de Barras" + +#. module: lrm_product_custom +#: model:ir.actions.report,name:lrm_product_custom.action_report_product_product_label +#: model:ir.actions.report,name:lrm_product_custom.action_report_product_template_label +msgid "Product Label" +msgstr "Etiquetas de Produto" diff --git a/lrm_product_custom/readme/CONTRIBUTORS.rst b/lrm_product_custom/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..9617554 --- /dev/null +++ b/lrm_product_custom/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Escodoo `_: + + * Marcel Savegnago + * Wesley Oliveira diff --git a/lrm_product_custom/readme/DESCRIPTION.rst b/lrm_product_custom/readme/DESCRIPTION.rst new file mode 100644 index 0000000..e43e940 --- /dev/null +++ b/lrm_product_custom/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module create a new product label report. diff --git a/lrm_product_custom/readme/USAGE.rst b/lrm_product_custom/readme/USAGE.rst new file mode 100644 index 0000000..05e8dd8 --- /dev/null +++ b/lrm_product_custom/readme/USAGE.rst @@ -0,0 +1,6 @@ +To use this module, you need to: +- Open the `product.template` or `product.product` tree or form view. +- Click on the "Print" button. +- Select the new "Product Label" report and export to PDF. +- The PDF will have the dimensions 30mm X 60mm. +- Fill in the "Internal Reference" and "Barcode" fields to see them in the report. diff --git a/lrm_product_custom/report/product_reports.xml b/lrm_product_custom/report/product_reports.xml new file mode 100644 index 0000000..22088ac --- /dev/null +++ b/lrm_product_custom/report/product_reports.xml @@ -0,0 +1,54 @@ + + + + + + Product Label + + custom + 30 + 60 + Portrait + 0 + 0 + 0 + 0 + + 0 + 110 + + + + Product Label + product.product + qweb-pdf + lrm_product_custom.report_product_product_label + lrm_product_custom.report_product_product_label + 'Products Labels - %s' % (object.name) + + report + + + + + Product Label + product.template + qweb-pdf + lrm_product_custom.report_product_template_label + lrm_product_custom.report_product_template_label + 'Products Labels - %s' % (object.name) + + report + + + + diff --git a/lrm_product_custom/report/product_templates.xml b/lrm_product_custom/report/product_templates.xml new file mode 100644 index 0000000..98f5111 --- /dev/null +++ b/lrm_product_custom/report/product_templates.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + diff --git a/lrm_product_custom/static/description/icon.png b/lrm_product_custom/static/description/icon.png new file mode 100644 index 0000000..12ab005 Binary files /dev/null and b/lrm_product_custom/static/description/icon.png differ diff --git a/lrm_product_custom/static/description/index.html b/lrm_product_custom/static/description/index.html new file mode 100644 index 0000000..aab57a4 --- /dev/null +++ b/lrm_product_custom/static/description/index.html @@ -0,0 +1,430 @@ + + + + + + +Lrm Product Custom + + + +
+

Lrm Product Custom

+ + +

Beta License: AGPL-3 Escodoo/lrm-addons

+

This module create a new product label report.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to: +- Open the product.template or product.product tree or form view. +- Click on the “Print” button. +- Select the new “Product Label” report and export to PDF. +- The PDF will have the dimensions 30mm X 60mm. +- Fill in the “Internal Reference” and “Barcode” fields to see them in the report.

+
+
+

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

+
    +
  • Escodoo
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the Escodoo/lrm-addons project on GitHub.

+

You are welcome to contribute.

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