diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 444e4d1c310..1a803a78ece 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -476,7 +476,9 @@ class HomeStaticTemplateHelpers(object): parent_tree = copy.deepcopy(self.template_dict[parent_addon][parent_name]) xpaths = list(template_tree) - if self.debug and inherit_mode == self.EXTENSION_MODE: + # owl chokes on comments, disable debug comments for now + # pylint: disable=W0125 + if False: # self.debug and inherit_mode == self.EXTENSION_MODE: for xpath in xpaths: xpath.insert(0, etree.Comment(" Modified by %s from %s " % (template_name, addon))) elif inherit_mode == self.PRIMARY_MODE: diff --git a/addons/web/tests/test_serving_base.py b/addons/web/tests/test_serving_base.py index 3ea1505e3cf..79fb256667b 100644 --- a/addons/web/tests/test_serving_base.py +++ b/addons/web/tests/test_serving_base.py @@ -145,7 +145,6 @@ class TestStaticInheritance(TestStaticInheritanceCommon):
And I grew strong
-
And I learned how to get along
@@ -351,7 +350,6 @@ class TestStaticInheritance(TestStaticInheritanceCommon):
At first I was afraid
-
I was petrified
Kept thinking I could never live without you by my side
@@ -408,9 +406,7 @@ class TestStaticInheritance(TestStaticInheritanceCommon):
I am a man of constant sorrow
-
In constant sorrow all through his days
-
Oh Brother !
I've seen trouble all my days
@@ -476,7 +472,7 @@ class TestStaticInheritance(TestStaticInheritanceCommon): expected = b"""
- And I grew strong + And I grew strong
""" @@ -510,7 +506,6 @@ class TestStaticInheritance(TestStaticInheritanceCommon): expected = b"""
- And I grew strong

And I learned how to get along

And so you're back @@ -551,7 +546,6 @@ class TestStaticInheritance(TestStaticInheritanceCommon): expected = b"""
- And I grew strong

And I learned how to get along

@@ -590,7 +584,6 @@ class TestStaticInheritance(TestStaticInheritanceCommon): expected = b"""
- Form replacer