diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-01-21 11:38:32 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-01-21 11:38:32 +0000 |
| commit | 6930f9c3536ff84abd7735b736bc02f1ae16d7ab (patch) | |
| tree | 57c929346ae71717cec3fd0107e3cc97e5e6c7a1 /addons/web_editor/controllers/main.py | |
| parent | cadefebd18d6001f9b9643d069d9e356f1e1f105 (diff) | |
[FIX] web_editor: restore less files edition
Broken by https://github.com/odoo/odoo/pull/30186
closes odoo/odoo#30403
Diffstat (limited to 'addons/web_editor/controllers/main.py')
| -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 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) |
