diff --git a/addons/website/static/src/components/fields/res_config_settings.js b/addons/website/static/src/components/fields/res_config_settings.js deleted file mode 100644 index 4b0828097da..00000000000 --- a/addons/website/static/src/components/fields/res_config_settings.js +++ /dev/null @@ -1,41 +0,0 @@ -/** @odoo-module **/ - -import { BooleanField } from '@web/views/fields/boolean/boolean_field'; -import { Dialog } from '@web/core/dialog/dialog'; -import { registry } from "@web/core/registry"; -import { useService } from "@web/core/utils/hooks"; - -const { Component } = owl; - -class CookieBarDialog extends Component { - accept() { - this.props.accept(); - this.props.close(); - } -} -CookieBarDialog.components = { Dialog }; -CookieBarDialog.template = 'website.res_config_settings.CookieDialog'; - -class WebsiteCookiebarField extends BooleanField { - setup() { - this.dialog = useService('dialog'); - } - - onChange(newValue) { - if (!newValue) { - return this.props.update(newValue); - } - let value = false; - this.dialog.add(CookieBarDialog, { - title: "Website Cookie Bar", - accept: () => { - value = true; - }, - }, { - onClose: () => { - this.props.update(value); - } - }); - } -} -registry.category("fields").add("website_cookiesbar_field", WebsiteCookiebarField); diff --git a/addons/website/static/src/components/fields/res_config_settings.xml b/addons/website/static/src/components/fields/res_config_settings.xml deleted file mode 100644 index f298d232ea5..00000000000 --- a/addons/website/static/src/components/fields/res_config_settings.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - -
-

- Cookie bars may significantly impair the experience of - your visitors. We recommend you avoid them unless you have - verified with a legal advisor that you absolutely need cookie - consent in your country. -

-

- For session cookies, authentification and analytics, - you do not need to ask for the consent (see e.g. Opinion - 04/2012 on Cookie Consent Exemption by the EU Art.29 WP). -

-
-
- - - - -
-
- -
diff --git a/addons/website/views/res_config_settings_views.xml b/addons/website/views/res_config_settings_views.xml index 29d5804b2a2..0e14c11c991 100644 --- a/addons/website/views/res_config_settings_views.xml +++ b/addons/website/views/res_config_settings_views.xml @@ -116,7 +116,7 @@
- +