From 3098182097c3d4c0c20386a71ff65c9c239b0da2 Mon Sep 17 00:00:00 2001 From: thien Date: Thu, 19 Dec 2024 18:43:50 +0700 Subject: [PATCH] [MIG] product_packaging_level_vendor: Migration to 18.0 --- .../README.rst | 25 ++++++++++------ .../__init__.py | 0 .../__manifest__.py | 10 +++---- .../i18n/it.po | 0 .../i18n/product_packaging_type_vendor.pot | 0 .../models/__init__.py | 1 + .../models/product_packaging_level.py | 4 +-- .../pyproject.toml | 0 .../readme/CONTRIBUTORS.md | 1 + .../readme/CREDITS.md | 1 + .../readme/DESCRIPTION.md | 2 ++ .../static/description/icon.png | Bin .../static/description/index.html | 27 +++++++++++------- .../views/product_packaging_level_view.xml | 16 +++++------ .../models/__init__.py | 1 - .../readme/DESCRIPTION.md | 2 -- 16 files changed, 53 insertions(+), 37 deletions(-) rename {product_packaging_type_vendor => product_packaging_level_vendor}/README.rst (78%) rename {product_packaging_type_vendor => product_packaging_level_vendor}/__init__.py (100%) rename {product_packaging_type_vendor => product_packaging_level_vendor}/__manifest__.py (57%) rename {product_packaging_type_vendor => product_packaging_level_vendor}/i18n/it.po (100%) rename {product_packaging_type_vendor => product_packaging_level_vendor}/i18n/product_packaging_type_vendor.pot (100%) create mode 100644 product_packaging_level_vendor/models/__init__.py rename product_packaging_type_vendor/models/product_packaging_type.py => product_packaging_level_vendor/models/product_packaging_level.py (80%) rename {product_packaging_type_vendor => product_packaging_level_vendor}/pyproject.toml (100%) rename {product_packaging_type_vendor => product_packaging_level_vendor}/readme/CONTRIBUTORS.md (63%) create mode 100644 product_packaging_level_vendor/readme/CREDITS.md create mode 100644 product_packaging_level_vendor/readme/DESCRIPTION.md rename {product_packaging_type_vendor => product_packaging_level_vendor}/static/description/icon.png (100%) rename {product_packaging_type_vendor => product_packaging_level_vendor}/static/description/index.html (85%) rename product_packaging_type_vendor/views/product_packaging_type_view.xml => product_packaging_level_vendor/views/product_packaging_level_view.xml (51%) delete mode 100644 product_packaging_type_vendor/models/__init__.py delete mode 100644 product_packaging_type_vendor/readme/DESCRIPTION.md diff --git a/product_packaging_type_vendor/README.rst b/product_packaging_level_vendor/README.rst similarity index 78% rename from product_packaging_type_vendor/README.rst rename to product_packaging_level_vendor/README.rst index 900a8fa30f9..dfb9ee6a57f 100644 --- a/product_packaging_type_vendor/README.rst +++ b/product_packaging_level_vendor/README.rst @@ -1,6 +1,6 @@ -============================= -Product Vendor Packaging Type -============================= +============================== +Product Vendor Packaging Level +============================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @@ -17,10 +17,10 @@ Product Vendor Packaging Type :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github - :target: https://github.com/OCA/product-attribute/tree/18.0/product_packaging_type_vendor + :target: https://github.com/OCA/product-attribute/tree/18.0/product_packaging_level_vendor :alt: OCA/product-attribute .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_packaging_type_vendor + :target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_packaging_level_vendor :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/product-attribute&target_branch=18.0 @@ -28,8 +28,8 @@ Product Vendor Packaging Type |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows to mark a product packaging type as a vendor-specific -packaging. +This module allows to mark a product packaging level as a +vendor-specific packaging. **Table of contents** @@ -42,7 +42,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -58,6 +58,13 @@ Contributors ------------ - Juan Miguel Sánchez Arce +- Thien Vo + +Other credits +------------- + +The migration of this module from 14.0 to 18.0 was financially supported +by Camptocamp. Maintainers ----------- @@ -72,6 +79,6 @@ 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/product-attribute `_ project on GitHub. +This module is part of the `OCA/product-attribute `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_packaging_type_vendor/__init__.py b/product_packaging_level_vendor/__init__.py similarity index 100% rename from product_packaging_type_vendor/__init__.py rename to product_packaging_level_vendor/__init__.py diff --git a/product_packaging_type_vendor/__manifest__.py b/product_packaging_level_vendor/__manifest__.py similarity index 57% rename from product_packaging_type_vendor/__manifest__.py rename to product_packaging_level_vendor/__manifest__.py index fcf09190e7f..4e2b6a99410 100644 --- a/product_packaging_type_vendor/__manifest__.py +++ b/product_packaging_level_vendor/__manifest__.py @@ -1,16 +1,16 @@ # Copyright 2024 Camptocamp SA # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). { - "name": "Product Vendor Packaging Type", - "summary": "Allows to mark a packaging type as vendor specific", - "version": "14.0.1.0.0", + "name": "Product Vendor Packaging Level", + "summary": "Allows to mark a packaging level as vendor specific", + "version": "18.0.1.0.0", "category": "Product", "author": "Camptocamp, Odoo Community Association (OCA)", "license": "LGPL-3", - "depends": ["product_packaging_type"], + "depends": ["product_packaging_level"], "website": "https://github.com/OCA/product-attribute", "data": [ - "views/product_packaging_type_view.xml", + "views/product_packaging_level_view.xml", ], "installable": True, } diff --git a/product_packaging_type_vendor/i18n/it.po b/product_packaging_level_vendor/i18n/it.po similarity index 100% rename from product_packaging_type_vendor/i18n/it.po rename to product_packaging_level_vendor/i18n/it.po diff --git a/product_packaging_type_vendor/i18n/product_packaging_type_vendor.pot b/product_packaging_level_vendor/i18n/product_packaging_type_vendor.pot similarity index 100% rename from product_packaging_type_vendor/i18n/product_packaging_type_vendor.pot rename to product_packaging_level_vendor/i18n/product_packaging_type_vendor.pot diff --git a/product_packaging_level_vendor/models/__init__.py b/product_packaging_level_vendor/models/__init__.py new file mode 100644 index 00000000000..64a1316d44c --- /dev/null +++ b/product_packaging_level_vendor/models/__init__.py @@ -0,0 +1 @@ +from . import product_packaging_level diff --git a/product_packaging_type_vendor/models/product_packaging_type.py b/product_packaging_level_vendor/models/product_packaging_level.py similarity index 80% rename from product_packaging_type_vendor/models/product_packaging_type.py rename to product_packaging_level_vendor/models/product_packaging_level.py index 751f0bdc517..96872c4d842 100644 --- a/product_packaging_type_vendor/models/product_packaging_type.py +++ b/product_packaging_level_vendor/models/product_packaging_level.py @@ -4,8 +4,8 @@ from odoo import fields, models -class ProductPackagingType(models.Model): - _inherit = "product.packaging.type" +class ProductPackagingLevel(models.Model): + _inherit = "product.packaging.level" is_vendor_packaging = fields.Boolean( string="Vendor Packaging", diff --git a/product_packaging_type_vendor/pyproject.toml b/product_packaging_level_vendor/pyproject.toml similarity index 100% rename from product_packaging_type_vendor/pyproject.toml rename to product_packaging_level_vendor/pyproject.toml diff --git a/product_packaging_type_vendor/readme/CONTRIBUTORS.md b/product_packaging_level_vendor/readme/CONTRIBUTORS.md similarity index 63% rename from product_packaging_type_vendor/readme/CONTRIBUTORS.md rename to product_packaging_level_vendor/readme/CONTRIBUTORS.md index b50c8039786..d4092a44b59 100644 --- a/product_packaging_type_vendor/readme/CONTRIBUTORS.md +++ b/product_packaging_level_vendor/readme/CONTRIBUTORS.md @@ -1 +1,2 @@ - Juan Miguel Sánchez Arce \<\> +- Thien Vo \<\> diff --git a/product_packaging_level_vendor/readme/CREDITS.md b/product_packaging_level_vendor/readme/CREDITS.md new file mode 100644 index 00000000000..573d68b7e86 --- /dev/null +++ b/product_packaging_level_vendor/readme/CREDITS.md @@ -0,0 +1 @@ +The migration of this module from 14.0 to 18.0 was financially supported by Camptocamp. diff --git a/product_packaging_level_vendor/readme/DESCRIPTION.md b/product_packaging_level_vendor/readme/DESCRIPTION.md new file mode 100644 index 00000000000..b57cedac6d6 --- /dev/null +++ b/product_packaging_level_vendor/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module allows to mark a product packaging level as a vendor-specific +packaging. diff --git a/product_packaging_type_vendor/static/description/icon.png b/product_packaging_level_vendor/static/description/icon.png similarity index 100% rename from product_packaging_type_vendor/static/description/icon.png rename to product_packaging_level_vendor/static/description/icon.png diff --git a/product_packaging_type_vendor/static/description/index.html b/product_packaging_level_vendor/static/description/index.html similarity index 85% rename from product_packaging_type_vendor/static/description/index.html rename to product_packaging_level_vendor/static/description/index.html index a242c34d465..b6c4475062f 100644 --- a/product_packaging_type_vendor/static/description/index.html +++ b/product_packaging_level_vendor/static/description/index.html @@ -3,7 +3,7 @@ -Product Vendor Packaging Type +Product Vendor Packaging Level -
-

Product Vendor Packaging Type

+
+

Product Vendor Packaging Level

-

Beta License: LGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

-

This module allows to mark a product packaging type as a vendor-specific -packaging.

+

Beta License: LGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

+

This module allows to mark a product packaging level as a +vendor-specific packaging.

Table of contents

@@ -389,7 +390,7 @@

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.

+feedback.

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

@@ -404,10 +405,16 @@

Authors

Contributors

+
+

Other credits

+

The migration of this module from 14.0 to 18.0 was financially supported +by Camptocamp.

+
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -415,7 +422,7 @@

Maintainers

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/product-attribute project on GitHub.

+

This module is part of the OCA/product-attribute project on GitHub.

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

diff --git a/product_packaging_type_vendor/views/product_packaging_type_view.xml b/product_packaging_level_vendor/views/product_packaging_level_view.xml similarity index 51% rename from product_packaging_type_vendor/views/product_packaging_type_view.xml rename to product_packaging_level_vendor/views/product_packaging_level_view.xml index 588a1cd61c7..43100b7349a 100644 --- a/product_packaging_type_vendor/views/product_packaging_type_view.xml +++ b/product_packaging_level_vendor/views/product_packaging_level_view.xml @@ -1,12 +1,12 @@ - - product.vendor.packaging.type.tree - product.packaging.type + + product.vendor.packaging.level.list + product.packaging.level @@ -14,12 +14,12 @@ - - product.vendor.packaging.type.form - product.packaging.type + + product.vendor.packaging.level.form + product.packaging.level diff --git a/product_packaging_type_vendor/models/__init__.py b/product_packaging_type_vendor/models/__init__.py deleted file mode 100644 index 643870a78df..00000000000 --- a/product_packaging_type_vendor/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import product_packaging_type diff --git a/product_packaging_type_vendor/readme/DESCRIPTION.md b/product_packaging_type_vendor/readme/DESCRIPTION.md deleted file mode 100644 index 9f5b5ef256d..00000000000 --- a/product_packaging_type_vendor/readme/DESCRIPTION.md +++ /dev/null @@ -1,2 +0,0 @@ -This module allows to mark a product packaging type as a vendor-specific -packaging.