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 Mar 23, 2024
1 parent 682a062 commit e376070
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions website_odoo_debranding/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ Contributors

- Alexandre Diaz

- Nils Coenen <[email protected]>

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

Expand Down
2 changes: 1 addition & 1 deletion website_odoo_debranding/__manifest__.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
- Dhara Solanki \<<[email protected]>\>
- [Tecnativa](https://www.tecnativa.com):
- Alexandre Diaz
- Nils Coenen \<<[email protected]>\>
1 change: 1 addition & 0 deletions website_odoo_debranding/static/description/index.html
Original file line number Diff line number Diff line change
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

0 comments on commit e376070

Please sign in to comment.