diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-01-25 16:49:07 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-01-25 17:29:34 +0000 |
| commit | c8ace043e50b202c88df81b9c02cc58256982d77 (patch) | |
| tree | e0c3872843d7b77d5544ca526a8bd8037713fad0 /addons/web_editor/controllers | |
| parent | e8803e91e22ace82f2ff8712e5c81c8c68ad3930 (diff) | |
| parent | 387d5cff90bdea935f6cd5b2b90f1125c5ea47a1 (diff) | |
[MERGE] forward port branch saas-11.3 up to 387d5cff90b
closes odoo/odoo#30566
Diffstat (limited to 'addons/web_editor/controllers')
| -rw-r--r-- | addons/web_editor/controllers/main.py | 2 |
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) |
