summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-01-25 16:49:07 +0000
committerChristophe Simonis <chs@odoo.com>2019-01-25 17:29:34 +0000
commitc8ace043e50b202c88df81b9c02cc58256982d77 (patch)
treee0c3872843d7b77d5544ca526a8bd8037713fad0 /addons/web_editor/controllers/main.py
parente8803e91e22ace82f2ff8712e5c81c8c68ad3930 (diff)
parent387d5cff90bdea935f6cd5b2b90f1125c5ea47a1 (diff)
[MERGE] forward port branch saas-11.3 up to 387d5cff90b
closes odoo/odoo#30566
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 27e4419afe9..7bb6f77a649 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -424,7 +424,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)