Skip to content

Commit

Permalink
[MIG] website_odoo_debranding: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NICO-SOLUTIONS committed Jan 2, 2024
1 parent 9e73dc3 commit 61179fb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions website_odoo_debranding/README.rst
Expand Up @@ -75,6 +75,8 @@ Contributors

- Alexandre Diaz

- Nils Coenen <nils.coenen@nico-solutions.de>

Maintainers
-----------

Expand Down
2 changes: 1 addition & 1 deletion website_odoo_debranding/__manifest__.py
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions 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
Expand All @@ -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
1 change: 1 addition & 0 deletions website_odoo_debranding/readme/CONTRIBUTORS.md
Expand Up @@ -6,3 +6,4 @@
- Dhara Solanki \<<dhara.solanki@initos.com>\>
- [Tecnativa](https://www.tecnativa.com):
- Alexandre Diaz
- Nils Coenen \<<nils.coenen@nico-solutions.de>\>
1 change: 1 addition & 0 deletions website_odoo_debranding/static/description/index.html
Expand Up @@ -422,6 +422,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Alexandre Diaz</li>
</ul>
</li>
<li>Nils Coenen &lt;<a class="reference external" href="mailto:nils.coenen&#64;nico-solutions.de">nils.coenen&#64;nico-solutions.de</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
1 change: 0 additions & 1 deletion website_odoo_debranding/templates/disable_odoo.xml
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Remove "Create a free website with Odoo" -->
<template
Expand Down

0 comments on commit 61179fb

Please sign in to comment.