From 506d88ea48a0ef0449d159da6cd229313ed2ad2b Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 6 Feb 2023 14:18:30 +0000 Subject: [PATCH] [REM] website: delete data-oe-company-name The `` element of websites had a `data-oe-company-name` attribute which was dead code since a long time. This commit removes it. Some history: - [1] introduced the SEO dialog which suggested the company name as keyword value. That value was retrieved through a `` which was added in the DOM at the time. - [2] converted the `` tag into valid HTML code, by introducing `data-oe-company-name`. - [3] suddenly stopped caring about the company name value... but left `data-oe-company-name` as dead code, alongside a JS method reading it (in the SEO dialog class). - [4] removed the JS method dead code by refactoring the whole SEO dialog during the website-in-backend refactoring... but still left the `data-oe-company-name` dead code. This commit finally cleans it. It was judged that not using the company name value (as step [3] decided) is ok. [1]: https://github.com/odoo/odoo/commit/f50b273ae12493e227806670d9a866b6be162551 [2]: https://github.com/odoo/odoo/commit/e28c8101232d527c2d3ea2e619013ca70602d957 [3]: https://github.com/odoo/odoo/commit/d52ec7fc42cbeecafea921ea30d1d0723a59078a [4]: https://github.com/odoo/odoo/commit/ac55f2bb113ecf7c774fe6e96d28e716184a97d1 closes odoo/odoo#112007 Signed-off-by: Quentin Smetz (qsm) --- addons/website/views/website_templates.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 3b730487d2b..52d906864bf 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -46,13 +46,11 @@ 'data-can-publish': 'can_publish' in main_object.fields_get() and main_object.can_publish, 'data-editable-in-backend': edit_in_backend or ('website_published' in main_object.fields_get() and main_object._name != 'website.page'), })"/> -