summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-01-23 18:15:18 +0100
committerChristophe Simonis <chs@odoo.com>2019-01-23 18:15:18 +0100
commitfab415acabf409538943aee9dec00c677caa43d6 (patch)
tree19db24973d3d4c0cdd84c6621d645fec910c442d /addons/web_editor/controllers/main.py
parent4aa153e65cf2995e3c109dab2958501e3911ff94 (diff)
parent984a99611eeba73f4292025954a4778cf0d9c45a (diff)
[MERGE] forward port branch 11.0 up to 984a99611ee
Diffstat (limited to 'addons/web_editor/controllers/main.py')
-rw-r--r--addons/web_editor/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py
index f0aae0ee8fe..3d938517b29 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -396,7 +396,7 @@ class Web_Editor(http.Controller):
(note: searching for the URL string is not enough as it could appear in a comment or an xpath expression.)
"""
- return bool(etree.XML(view.arch).xpath("link[@href='{}']".format(url)))
+ return bool(etree.XML(view.arch).xpath("//link[@href='{}']".format(url)))
view_to_xpath = IrUiView.get_related_views(bundle_xmlid, bundles=True).filtered(views_linking_url)