From c0a23821f99fc2ecb21e43609932871d7591befe Mon Sep 17 00:00:00 2001 From: Borruso Date: Fri, 29 Nov 2024 13:11:31 +0100 Subject: [PATCH] [MIG] website_sale_hide_price: Migration to 18.0 --- website_sale_hide_price/README.rst | 10 +++++----- website_sale_hide_price/__manifest__.py | 7 +------ .../models/res_config_settings.py | 2 -- .../static/description/index.html | 6 +++--- .../static/src/xml/website_sale_templates.xml | 12 ------------ .../views/product_template_views.xml | 4 ++-- .../views/res_config_settings_views.xml | 10 ++++++++-- .../views/website_sale_template.xml | 13 ------------- 8 files changed, 19 insertions(+), 45 deletions(-) delete mode 100644 website_sale_hide_price/static/src/xml/website_sale_templates.xml diff --git a/website_sale_hide_price/README.rst b/website_sale_hide_price/README.rst index 9c8238f0d4..e071027d0b 100644 --- a/website_sale_hide_price/README.rst +++ b/website_sale_hide_price/README.rst @@ -17,13 +17,13 @@ Website Sale Hide Price :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github - :target: https://github.com/OCA/e-commerce/tree/17.0/website_sale_hide_price + :target: https://github.com/OCA/e-commerce/tree/18.0/website_sale_hide_price :alt: OCA/e-commerce .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_hide_price + :target: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_price :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/e-commerce&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -95,7 +95,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. @@ -142,6 +142,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/e-commerce `_ project on GitHub. +This module is part of the `OCA/e-commerce `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_sale_hide_price/__manifest__.py b/website_sale_hide_price/__manifest__.py index be830ff4ef..dbd64c92c5 100644 --- a/website_sale_hide_price/__manifest__.py +++ b/website_sale_hide_price/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Website Sale Hide Price", - "version": "17.0.1.1.1", + "version": "18.0.1.0.0", "category": "Website", "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/e-commerce", @@ -17,9 +17,4 @@ "views/website_sale_template.xml", ], "installable": True, - "assets": { - "web.assets_frontend": [ - "/website_sale_hide_price/static/src/xml/website_sale_templates.xml" - ] - }, } diff --git a/website_sale_hide_price/models/res_config_settings.py b/website_sale_hide_price/models/res_config_settings.py index c434a17c6e..87421573ac 100644 --- a/website_sale_hide_price/models/res_config_settings.py +++ b/website_sale_hide_price/models/res_config_settings.py @@ -9,9 +9,7 @@ class ResConfigSettings(models.TransientModel): website_hide_price = fields.Boolean( string="Hide prices on website", related="website_id.website_hide_price", - readonly=False, ) website_hide_price_default_message = fields.Char( related="website_id.website_hide_price_default_message", - readonly=False, ) diff --git a/website_sale_hide_price/static/description/index.html b/website_sale_hide_price/static/description/index.html index de13193dbc..f5d9f51161 100644 --- a/website_sale_hide_price/static/description/index.html +++ b/website_sale_hide_price/static/description/index.html @@ -369,7 +369,7 @@

Website Sale Hide Price

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:a527724d118ccfc6608fc1b3fd828e9c26cb60b8d327d12d6b95b5eb558105f1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

This module allows to have hidden product prices on the website store.

Table of contents

@@ -445,7 +445,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.

@@ -489,7 +489,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/e-commerce project on GitHub.

+

This module is part of the OCA/e-commerce project on GitHub.

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

diff --git a/website_sale_hide_price/static/src/xml/website_sale_templates.xml b/website_sale_hide_price/static/src/xml/website_sale_templates.xml deleted file mode 100644 index 1834cbc626..0000000000 --- a/website_sale_hide_price/static/src/xml/website_sale_templates.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - diff --git a/website_sale_hide_price/views/product_template_views.xml b/website_sale_hide_price/views/product_template_views.xml index 18d73e2ba1..98c5dd8cc0 100644 --- a/website_sale_hide_price/views/product_template_views.xml +++ b/website_sale_hide_price/views/product_template_views.xml @@ -4,10 +4,10 @@ product.template - + - + diff --git a/website_sale_hide_price/views/res_config_settings_views.xml b/website_sale_hide_price/views/res_config_settings_views.xml index b48a6d8f07..ac21107d53 100644 --- a/website_sale_hide_price/views/res_config_settings_views.xml +++ b/website_sale_hide_price/views/res_config_settings_views.xml @@ -9,13 +9,19 @@ id="website_sale_hide_price" title="Hide prices at website level" > - + - + diff --git a/website_sale_hide_price/views/website_sale_template.xml b/website_sale_hide_price/views/website_sale_template.xml index e7e49c7d92..cb77ed0cd2 100644 --- a/website_sale_hide_price/views/website_sale_template.xml +++ b/website_sale_hide_price/views/website_sale_template.xml @@ -16,19 +16,6 @@