[FIX] web_editor: restore less files edition

Broken by https://github.com/odoo/odoo/pull/30186

closes odoo/odoo#30403
This commit is contained in:
qsm-odoo
2019-01-21 11:38:32 +00:00
parent cadefebd18
commit 6930f9c353
+1 -1
View File
@@ -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)