[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user