From 61179fb2b5275e5ab91dd8746b87945d927d4f65 Mon Sep 17 00:00:00 2001 From: Nils Coenen <74965194+NICO-SOLUTIONS@users.noreply.github.com> Date: Sun, 12 Nov 2023 22:06:01 +0100 Subject: [PATCH] [MIG] website_odoo_debranding: Migration to 17.0 --- website_odoo_debranding/README.rst | 2 ++ website_odoo_debranding/__manifest__.py | 2 +- website_odoo_debranding/hooks.py | 4 +--- website_odoo_debranding/readme/CONTRIBUTORS.md | 1 + website_odoo_debranding/static/description/index.html | 1 + website_odoo_debranding/templates/disable_odoo.xml | 1 - 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/website_odoo_debranding/README.rst b/website_odoo_debranding/README.rst index 52205f531d..73428a2370 100644 --- a/website_odoo_debranding/README.rst +++ b/website_odoo_debranding/README.rst @@ -75,6 +75,8 @@ Contributors - Alexandre Diaz +- Nils Coenen + Maintainers ----------- diff --git a/website_odoo_debranding/__manifest__.py b/website_odoo_debranding/__manifest__.py index af8a72c6f5..e27ff9f379 100644 --- a/website_odoo_debranding/__manifest__.py +++ b/website_odoo_debranding/__manifest__.py @@ -2,7 +2,7 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). { "name": "Remove Odoo Branding from Website", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/website", "license": "LGPL-3", diff --git a/website_odoo_debranding/hooks.py b/website_odoo_debranding/hooks.py index 763359b534..8b0680a890 100644 --- a/website_odoo_debranding/hooks.py +++ b/website_odoo_debranding/hooks.py @@ -1,10 +1,9 @@ # Copyright (C) 2020 Alexandre Díaz - Tecnativa S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import SUPERUSER_ID, api from odoo.tools import config -def post_init_hook(cr, registry): +def post_init_hook(env): # This is here to not broke the tests. The idea: # - XML changes in website are made using 'customize_show=True' # - When Odoo is running in testing mode, we disable our changes @@ -14,5 +13,4 @@ def post_init_hook(cr, registry): # For CI/CD avoids problems testing modules that removes/positioning elements # that other modules uses in their tests. if config["test_enable"] or config["test_file"]: - env = api.Environment(cr, SUPERUSER_ID, {}) env.ref("website_odoo_debranding.layout_footer_copyright").active = False diff --git a/website_odoo_debranding/readme/CONTRIBUTORS.md b/website_odoo_debranding/readme/CONTRIBUTORS.md index c3d2de5969..4a71a58bf7 100644 --- a/website_odoo_debranding/readme/CONTRIBUTORS.md +++ b/website_odoo_debranding/readme/CONTRIBUTORS.md @@ -6,3 +6,4 @@ - Dhara Solanki \<\> - [Tecnativa](https://www.tecnativa.com): - Alexandre Diaz +- Nils Coenen \<\> diff --git a/website_odoo_debranding/static/description/index.html b/website_odoo_debranding/static/description/index.html index 5caaa29f79..e38568fe14 100644 --- a/website_odoo_debranding/static/description/index.html +++ b/website_odoo_debranding/static/description/index.html @@ -422,6 +422,7 @@

Contributors

  • Alexandre Diaz
  • +
  • Nils Coenen <nils.coenen@nico-solutions.de>
  • diff --git a/website_odoo_debranding/templates/disable_odoo.xml b/website_odoo_debranding/templates/disable_odoo.xml index 76cb919a0a..7120ea55de 100644 --- a/website_odoo_debranding/templates/disable_odoo.xml +++ b/website_odoo_debranding/templates/disable_odoo.xml @@ -1,4 +1,3 @@ -