[REM] website: delete data-oe-company-name

The `<html>` 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 `<meta>` which was
  added in the DOM at the time.

- [2] converted the `<meta>` 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) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2023-02-06 16:28:50 +01:00
parent 5cec1fc94d
commit 506d88ea48
@@ -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'),
})"/>
<!-- TODO investigate: data-oe-company-name seems like dead code -->
<t t-if="editable or translatable" t-set="nothing" t-value="html_data.update({
'data-editable': '1' if editable else None,
'data-translatable': '1' if translatable else None,
'data-view-xmlid': xmlid,
'data-viewid': viewid,
'data-oe-company-name': res_company.name,
})"/>
</xpath>