17 lines
796 B
Python
17 lines
796 B
Python
# Copyright (C) 2020 Alexandre Díaz - Tecnativa S.L.
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
from odoo.tools import config
|
|
|
|
|
|
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
|
|
# - When run our test, we enable the changes and test it. (see test file)
|
|
#
|
|
# For the user it has no impact (only more customizable options in the website)
|
|
# 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.ref("website_debranding.layout_footer_copyright").active = False
|