Skip to content

Commit

Permalink
[FIX] web_editor: restore less files edition
Browse files Browse the repository at this point in the history
Broken by #30186
  • Loading branch information
qsm-odoo committed Jan 21, 2019
1 parent 0c2e168 commit 76dbaec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/web_editor/controllers/main.py
Expand Up @@ -387,7 +387,7 @@ def views_linking_url(view):
(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)

Expand Down

0 comments on commit 76dbaec

Please sign in to comment.