From ee860ea7e9761dfab624a098da73f677fd2bb0f7 Mon Sep 17 00:00:00 2001 From: KNVx Date: Wed, 27 Dec 2023 12:49:29 +0100 Subject: [PATCH] [MIG] lighting_reporting_attachment: Migration to 16.0 --- lighting_reporting_attachment/README.rst | 54 ++- lighting_reporting_attachment/__init__.py | 5 - lighting_reporting_attachment/__manifest__.py | 8 +- .../controllers/__init__.py | 4 - .../controllers/main.py | 3 +- .../models/__init__.py | 4 - .../models/product_attachment.py | 5 +- .../readme/CONTRIBUTORS.rst | 2 + .../readme/DESCRIPTION.rst | 1 + .../static/description/index.html | 416 ++++++++++++++++++ .../views/product_attachment_views.xml | 3 +- setup/lighting_reporting_attachment/setup.cfg | 2 - 12 files changed, 469 insertions(+), 38 deletions(-) create mode 100644 lighting_reporting_attachment/readme/CONTRIBUTORS.rst create mode 100644 lighting_reporting_attachment/readme/DESCRIPTION.rst create mode 100644 lighting_reporting_attachment/static/description/index.html delete mode 100644 setup/lighting_reporting_attachment/setup.cfg diff --git a/lighting_reporting_attachment/README.rst b/lighting_reporting_attachment/README.rst index 046ef5aad..64ff368ec 100644 --- a/lighting_reporting_attachment/README.rst +++ b/lighting_reporting_attachment/README.rst @@ -1,29 +1,61 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ============================= Lighting Reporting Attachment ============================= -* Enables the option to use a selected attachments as a product datasheet +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d9ceaf4c14741aa2c3256348f2b75220378fbe8d589864b68d3fbe24baee06f8 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-NuoBiT%2Flighting--vertical-lightgray.png?logo=github + :target: https://github.com/NuoBiT/lighting-vertical/tree/16.0/lighting_reporting_attachment + :alt: NuoBiT/lighting-vertical + +|badge1| |badge2| |badge3| + +Enables the option to use a selected attachments as a product datasheet + +**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. +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 +~~~~~~~ + +* NuoBiT Solutions SL + Contributors ------------- +~~~~~~~~~~~~ * Eric Antones +* Kilian Niubo +Maintainers +~~~~~~~~~~~ +This module is part of the `NuoBiT/lighting-vertical `_ project on GitHub. - +You are welcome to contribute. diff --git a/lighting_reporting_attachment/__init__.py b/lighting_reporting_attachment/__init__.py index db8d7bbe4..f7209b171 100644 --- a/lighting_reporting_attachment/__init__.py +++ b/lighting_reporting_attachment/__init__.py @@ -1,7 +1,2 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - from . import models - from . import controllers diff --git a/lighting_reporting_attachment/__manifest__.py b/lighting_reporting_attachment/__manifest__.py index 55859a229..a07a95ef5 100644 --- a/lighting_reporting_attachment/__manifest__.py +++ b/lighting_reporting_attachment/__manifest__.py @@ -1,12 +1,10 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones +# Copyright NuoBiT Solutions - Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { "name": "Lighting Reporting Attachment", - "description": """* Enables the option to use a selected attachments as a product datasheet""", - "version": "11.0.1.0.1", - "author": "NuoBiT Solutions, S.L., Eric Antones", + "version": "16.0.1.0.0", + "author": "NuoBiT Solutions SL", "license": "AGPL-3", "category": "Custom", "website": "https://github.com/NuoBiT/lighting-vertical", diff --git a/lighting_reporting_attachment/controllers/__init__.py b/lighting_reporting_attachment/controllers/__init__.py index 39da29ee7..12a7e529b 100644 --- a/lighting_reporting_attachment/controllers/__init__.py +++ b/lighting_reporting_attachment/controllers/__init__.py @@ -1,5 +1 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - from . import main diff --git a/lighting_reporting_attachment/controllers/main.py b/lighting_reporting_attachment/controllers/main.py index 94c69aa61..240db95dc 100644 --- a/lighting_reporting_attachment/controllers/main.py +++ b/lighting_reporting_attachment/controllers/main.py @@ -1,5 +1,4 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones +# Copyright NuoBiT Solutions - Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) import base64 diff --git a/lighting_reporting_attachment/models/__init__.py b/lighting_reporting_attachment/models/__init__.py index 8bad595b6..dc578aacd 100644 --- a/lighting_reporting_attachment/models/__init__.py +++ b/lighting_reporting_attachment/models/__init__.py @@ -1,5 +1 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - from . import product_attachment diff --git a/lighting_reporting_attachment/models/product_attachment.py b/lighting_reporting_attachment/models/product_attachment.py index b25a76309..b949571ed 100644 --- a/lighting_reporting_attachment/models/product_attachment.py +++ b/lighting_reporting_attachment/models/product_attachment.py @@ -1,5 +1,4 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones +# Copyright NuoBiT Solutions - Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -9,5 +8,5 @@ class LightingAttachment(models.Model): _inherit = "lighting.attachment" use_as_product_datasheet = fields.Boolean( - string="Use as a product datasheet", default=False + default=False, ) diff --git a/lighting_reporting_attachment/readme/CONTRIBUTORS.rst b/lighting_reporting_attachment/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..433c4bbe6 --- /dev/null +++ b/lighting_reporting_attachment/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Eric Antones +* Kilian Niubo diff --git a/lighting_reporting_attachment/readme/DESCRIPTION.rst b/lighting_reporting_attachment/readme/DESCRIPTION.rst new file mode 100644 index 000000000..6d962c853 --- /dev/null +++ b/lighting_reporting_attachment/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Enables the option to use a selected attachments as a product datasheet diff --git a/lighting_reporting_attachment/static/description/index.html b/lighting_reporting_attachment/static/description/index.html new file mode 100644 index 000000000..34da1faf9 --- /dev/null +++ b/lighting_reporting_attachment/static/description/index.html @@ -0,0 +1,416 @@ + + + + + +Lighting Reporting Attachment + + + +
+

Lighting Reporting Attachment

+ + +

Beta License: AGPL-3 NuoBiT/lighting-vertical

+

Enables the option to use a selected attachments as a product datasheet

+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • NuoBiT Solutions SL
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the NuoBiT/lighting-vertical project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/lighting_reporting_attachment/views/product_attachment_views.xml b/lighting_reporting_attachment/views/product_attachment_views.xml index 55086f17d..497c3d8bf 100644 --- a/lighting_reporting_attachment/views/product_attachment_views.xml +++ b/lighting_reporting_attachment/views/product_attachment_views.xml @@ -1,6 +1,5 @@ - diff --git a/setup/lighting_reporting_attachment/setup.cfg b/setup/lighting_reporting_attachment/setup.cfg deleted file mode 100644 index 3c6e79cf3..000000000 --- a/setup/lighting_reporting_attachment/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1