From 6930f9c3536ff84abd7735b736bc02f1ae16d7ab Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 21 Jan 2019 11:38:32 +0000 Subject: [PATCH] [FIX] web_editor: restore less files edition Broken by https://github.com/odoo/odoo/pull/30186 closes odoo/odoo#30403 --- addons/web_editor/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index 3efadce2ba4..2a82e7276bf 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -387,7 +387,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)