From cd2a649b8bf5e9e4a219682135883510cf0f1609 Mon Sep 17 00:00:00 2001 From: Younn Olivier Date: Thu, 14 Jul 2022 08:57:56 +0000 Subject: [PATCH] [FIX] web, mass_mailing, website: remove frontend debug icon After [1] moved the website edition in the backend, we feel that the code required to make the additional debug icon in the footer of the frontend still work is not worth it. Before this commit, on a website page, it was not working: clicking on it from the WebsitePreview client action would only remove the debug mode of the frontend, and the backend would keep it. The user can now leave the debug mode from the debug menu systray item and we consider that leaving debug mode as a visitor (from the frontend) is not a feature worth keeping. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-2687506 closes odoo/odoo#95499 Related: odoo/upgrade#3721 Signed-off-by: Quentin Smetz (qsm) --- .../views/mailing_templates_portal_layouts.xml | 1 - addons/web/views/webclient_templates.xml | 9 --------- addons/website/tests/test_page.py | 9 --------- 3 files changed, 19 deletions(-) diff --git a/addons/mass_mailing/views/mailing_templates_portal_layouts.xml b/addons/mass_mailing/views/mailing_templates_portal_layouts.xml index ba652e5bfbc..c0659daafbf 100644 --- a/addons/mass_mailing/views/mailing_templates_portal_layouts.xml +++ b/addons/mass_mailing/views/mailing_templates_portal_layouts.xml @@ -26,7 +26,6 @@ Odoo
- Copyright © Company name
diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index 901d53e12de..44ac56ea092 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -66,7 +66,6 @@
- Copyright © Company name
@@ -319,12 +318,4 @@ - - diff --git a/addons/website/tests/test_page.py b/addons/website/tests/test_page.py index 1ab59fb2ef4..041ed7c59fe 100644 --- a/addons/website/tests/test_page.py +++ b/addons/website/tests/test_page.py @@ -304,15 +304,6 @@ class WithContext(HttpCase): canonical_url = root_html.xpath('//link[@rel="canonical"]')[0].attrib['href'] self.assertIn(canonical_url, [f"{website.domain}/", f"{website.domain}/page_1"]) - def test_t_cache_footer_debug_link(self): - # Debug link (flag) should be use the current url. - self.url_open('/') - self.url_open('/contactus') - r = self.url_open('/?debug=1') - self.assertIn('