summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 24451c90e89..0ae52465604 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -509,15 +509,12 @@ class HomeStaticTemplateHelpers(object):
# After several performance tests, we found out that deepcopy is the most efficient
# solution in this case (compared with copy, xpath with '.' and stringifying).
parent_tree = copy.deepcopy(self.template_dict[parent_addon][parent_name])
- parent_tag = parent_tree.tag
- # replace temporarily the parent tag so it is never the target of the inheritance
- parent_tree.tag = 't'
+
xpaths = list(template_tree)
if 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)))
inherited_template = apply_inheritance_specs(parent_tree, xpaths)
- inherited_template.tag = parent_tag
if inherit_mode == self.PRIMARY_MODE: # New template_tree: A' = B(A)
inherited_template.set(self.NAME_TEMPLATE_DIRECTIVE, template_name)