Initial commit: OCA Website packages (16 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:06 +02:00
commit 0578ef7638
660 changed files with 37334 additions and 0 deletions

View file

@ -0,0 +1,114 @@
=================
Website Cookiebot
=================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ac3198e9e153575161d66cb4028f1f14c2a162e32c2fa2d39fbf9f719fd52e08
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
:target: https://github.com/OCA/website/tree/16.0/website_cookiebot
:alt: OCA/website
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_cookiebot
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=16.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
This module integrates Odoo website with `Cookiebot <https://www.cookiebot.com/>`__,
to ask for consent before installing cookies on users' browsers.
**Table of contents**
.. contents::
:local:
Configuration
=============
To configure this module, you need to:
#. Go to *Website > Configuration > Settings*
#. Under *Select the Website to Configure*, choose a website.
#. In the privacy section enable *Cookiebot* option.
#. Click on *`How to configure Cookiebot <https://cookiebot.com/goto/help>`__*.
#. Follow the instructions, except step 3 (do not insert the ``<script>`` tags, the module will do it for you).
#. Fill in your *Domain Group ID* (e.g. ``00000000-0000-0000-0000-000000000000``)
#. Click on the *Save* button.
⚠️ **This module will do nothing unless configured and linked with Cookiebot.**
Usage
=====
To use this module, once configured for your website, you just need to browse
that website. You will see the Cookiebot consent banner, and a *Cookies Policy*
link in the footer.
.. figure:: https://raw.githubusercontent.com/OCA/website/16.0/website_cookiebot/static/description/screenshot.png
:alt: Cookiebot consent banner
Remember that, if your browser is configured to block 3rd party cookies,
trackers or consent banners, you won't notice the change. Disable any of those
protections to experiment the benefits.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/website/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/website/issues/new?body=module:%20website_cookiebot%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Trey (www.trey.es)
* Tecnativa
Contributors
~~~~~~~~~~~~
* `Trey <https://www.trey.es>`__:
* Jorge Camacho <jorge@trey.es>
* Antonio González <antonio@trey.es>
* `Tecnativa <https://www.tecnativa.com/>`__:
* Jairo Llopis
* Stefan Ungureanu
* Pilar Vargas
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/website <https://github.com/OCA/website/tree/16.0/website_cookiebot>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View file

@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
from . import wizards

View file

@ -0,0 +1,18 @@
# Copyright 2020 Trey - Antonio González <antonio@trey.es>
# Copyright 2021 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Website Cookiebot",
"summary": "Ask for cookies consent connecting with Cookiebot",
"category": "Website",
"version": "16.0.2.0.0",
"author": "Trey (www.trey.es), Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/website",
"license": "AGPL-3",
"depends": ["website"],
"data": [
"templates/assets.xml",
"templates/website.xml",
"wizards/res_config_settings_views.xml",
],
}

View file

@ -0,0 +1,92 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_cookiebot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "00000000-0000-0000-0000-000000000000"
msgstr "00000000-0000-0000-0000-000000000000"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<i class=\"fa fa-arrow-right\"/>\n"
" How to configure Cookiebot."
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"fa fa-lg fa-globe\" title=\"Values set here are website-"
"specific.\" groups=\"website.group_multi_website\"/>"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"text-muted\">\n"
" Instead of step 3, paste here your Domain Group ID.\n"
" </span>"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "Ask for consent on cookies usage"
msgstr "Traži odobrenje za korišćenje kolačića"
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_res_config_settings
msgid "Config Settings"
msgstr "Postavke"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.cookies
msgid "Cookie Declaration"
msgstr "Izjava o kolačićima"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_enabled
msgid "Cookiebot"
msgstr "Cookiebot"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_dgid
msgid "Cookiebot Domain Group ID"
msgstr "Cookiebot Domain Group ID"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_enabled
msgid "Cookiebot Enabled"
msgstr "Cookiebot omogućen"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.layout_footer_copyright
msgid "Cookies Policy"
msgstr "Politika kolačića"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_dgid
msgid "Domain Group ID"
msgstr "Domain Group ID"
#. module: website_cookiebot
#: model:ir.model.fields,help:website_cookiebot.field_res_config_settings__cookiebot_dgid
#: model:ir.model.fields,help:website_cookiebot.field_website__cookiebot_dgid
msgid "Get this code from Cookiebot to enable it on the website."
msgstr "Nabavite ovaj kod od Cookiebot-a da ga omogućite na web stranici."
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_website
msgid "Website"
msgstr "Web stranica"

View file

@ -0,0 +1,107 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_cookiebot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-01-28 17:44+0000\n"
"Last-Translator: Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT <nils."
"coenen@nico-solutions.de>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.14.1\n"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "00000000-0000-0000-0000-000000000000"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<i class=\"fa fa-arrow-right\"/>\n"
" How to configure Cookiebot."
msgstr ""
"<i class=\"fa fa-arrow-right\"/>\n"
" So konfigurieren Sie Cookiebot."
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"fa fa-lg fa-globe\" title=\"Values set here are website-"
"specific.\" groups=\"website.group_multi_website\"/>"
msgstr ""
"<span class=\"fa fa-lg fa-globe\" title=\"Die hier eingestellten Werte sind "
"websitespezifisch.\" groups=\"website.group_multi_website\"/>"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"text-muted\">\n"
" Instead of step 3, paste here your "
"Domain Group ID.\n"
" </span>"
msgstr ""
"<span class=\"text-muted\">\n"
" Anstelle von Schritt 3 fügen Sie hier "
"Ihre Domänengruppen-ID ein.\n"
" </span>"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "Ask for consent on cookies usage"
msgstr "Bitten Sie um Zustimmung zur Verwendung von Cookies"
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_res_config_settings
msgid "Config Settings"
msgstr "Konfigurationseinstellungen"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.cookies
msgid "Cookie Declaration"
msgstr "Cookie-Erklärung"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_enabled
msgid "Cookiebot"
msgstr ""
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_dgid
msgid "Cookiebot Domain Group ID"
msgstr "Cookiebot Domänengruppen-ID"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_enabled
msgid "Cookiebot Enabled"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.layout_footer_copyright
msgid "Cookies Policy"
msgstr "Cookie-Richtlinie"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_dgid
msgid "Domain Group ID"
msgstr "Domänengruppen-ID"
#. module: website_cookiebot
#: model:ir.model.fields,help:website_cookiebot.field_res_config_settings__cookiebot_dgid
#: model:ir.model.fields,help:website_cookiebot.field_website__cookiebot_dgid
msgid "Get this code from Cookiebot to enable it on the website."
msgstr ""
"Holen Sie sich diesen Code von Cookiebot, um ihn auf der Website zu "
"aktivieren."
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_website
msgid "Website"
msgstr "Webseite"

View file

@ -0,0 +1,117 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_cookiebot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-18 17:11+0000\n"
"PO-Revision-Date: 2023-09-20 17:50+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: Trey <info@trey.es>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
"X-Poedit-SourceCharset: UTF-8\n"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "00000000-0000-0000-0000-000000000000"
msgstr "00000000-0000-0000-0000-000000000000"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<i class=\"fa fa-arrow-right\"/>\n"
" How to configure Cookiebot."
msgstr ""
"<i class=\"fa fa-arrow-right\"/>\n"
" Cómo configurar Cookiebot."
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"fa fa-lg fa-globe\" title=\"Values set here are website-"
"specific.\" groups=\"website.group_multi_website\"/>"
msgstr ""
"<span class=\"fa fa-lg fa-globe\" title=\"Values set here are website-"
"specific.\" groups=\"website.group_multi_website\"/>"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"text-muted\">\n"
" Instead of step 3, paste here your "
"Domain Group ID.\n"
" </span>"
msgstr ""
"<span class=\"text-muted\">\n"
" En lugar del paso 3, pegue aquí su ID de "
"grupo de dominio.\n"
" </span>"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "Ask for consent on cookies usage"
msgstr "Solicitar consentimiento sobre el uso de cookies"
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_res_config_settings
msgid "Config Settings"
msgstr "Opciones de configuración"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.cookies
msgid "Cookie Declaration"
msgstr "Declaración de cookies"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_enabled
msgid "Cookiebot"
msgstr "Cookiebot"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_dgid
msgid "Cookiebot Domain Group ID"
msgstr "Cookiebot Dominio Grupo ID"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_enabled
msgid "Cookiebot Enabled"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.layout_footer_copyright
msgid "Cookies Policy"
msgstr "Política de cookies"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_dgid
msgid "Domain Group ID"
msgstr "ID de grupo de dominios"
#. module: website_cookiebot
#: model:ir.model.fields,help:website_cookiebot.field_res_config_settings__cookiebot_dgid
#: model:ir.model.fields,help:website_cookiebot.field_website__cookiebot_dgid
msgid "Get this code from Cookiebot to enable it on the website."
msgstr "Obtén este código de Cookiebot para habilitarlo en el sitio web."
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_website
msgid "Website"
msgstr "Sitio web"
#~ msgid "Adds Cookiebot functionality"
#~ msgstr "Integra la funcionalidad de Cookiebot y la RGPD"
#~ msgid "This field holds the ID, needed for Cookiebot functionality."
#~ msgstr ""
#~ "Este campo contiene el ID de Cookiebot, necesario para el correcto "
#~ "funcionamiento de los scripts."
#~ msgid "Tracking ID"
#~ msgstr "ID de seguimiento"

View file

@ -0,0 +1,104 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_cookiebot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-16 09:58+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "00000000-0000-0000-0000-000000000000"
msgstr "00000000-0000-0000-0000-000000000000"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<i class=\"fa fa-arrow-right\"/>\n"
" How to configure Cookiebot."
msgstr ""
"<i class=\"fa fa-arrow-right\"/>\n"
" Come configurare il Cookiebot."
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"fa fa-lg fa-globe\" title=\"Values set here are website-"
"specific.\" groups=\"website.group_multi_website\"/>"
msgstr ""
"<span class=\"fa fa-lg fa-globe\" title=\"I valori impostati qui sono "
"specifici per sito web.\" groups=\"website.group_multi_website\"/>"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"text-muted\">\n"
" Instead of step 3, paste here your "
"Domain Group ID.\n"
" </span>"
msgstr ""
"<span class=\"text-muted\">\n"
" Al posto del passo 3, incollare qui il "
"vstro ID gruppo dominio.\n"
" </span>"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "Ask for consent on cookies usage"
msgstr "Richiesta per consentire l'utilizzo dei cookie"
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni configurazione"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.cookies
msgid "Cookie Declaration"
msgstr "Dichiarazione cookie"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_enabled
msgid "Cookiebot"
msgstr "Cookiebot"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_dgid
msgid "Cookiebot Domain Group ID"
msgstr "ID gruppo dominio cookiebot"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_enabled
msgid "Cookiebot Enabled"
msgstr "BOT cookie abilitato"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.layout_footer_copyright
msgid "Cookies Policy"
msgstr "Politica dei cookie"
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_dgid
msgid "Domain Group ID"
msgstr "ID gruppo dominio"
#. module: website_cookiebot
#: model:ir.model.fields,help:website_cookiebot.field_res_config_settings__cookiebot_dgid
#: model:ir.model.fields,help:website_cookiebot.field_website__cookiebot_dgid
msgid "Get this code from Cookiebot to enable it on the website."
msgstr "Ricavare questo codice dal cookiebot per abilitarlo nel sito web."
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_website
msgid "Website"
msgstr "Sito web"

View file

@ -0,0 +1,92 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_cookiebot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "00000000-0000-0000-0000-000000000000"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<i class=\"fa fa-arrow-right\"/>\n"
" How to configure Cookiebot."
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"fa fa-lg fa-globe\" title=\"Values set here are website-"
"specific.\" groups=\"website.group_multi_website\"/>"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid ""
"<span class=\"text-muted\">\n"
" Instead of step 3, paste here your Domain Group ID.\n"
" </span>"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.res_config_settings_view_form
msgid "Ask for consent on cookies usage"
msgstr ""
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_res_config_settings
msgid "Config Settings"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.cookies
msgid "Cookie Declaration"
msgstr ""
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_enabled
msgid "Cookiebot"
msgstr ""
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_dgid
msgid "Cookiebot Domain Group ID"
msgstr ""
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_website__cookiebot_enabled
msgid "Cookiebot Enabled"
msgstr ""
#. module: website_cookiebot
#: model_terms:ir.ui.view,arch_db:website_cookiebot.layout_footer_copyright
msgid "Cookies Policy"
msgstr ""
#. module: website_cookiebot
#: model:ir.model.fields,field_description:website_cookiebot.field_res_config_settings__cookiebot_dgid
msgid "Domain Group ID"
msgstr ""
#. module: website_cookiebot
#: model:ir.model.fields,help:website_cookiebot.field_res_config_settings__cookiebot_dgid
#: model:ir.model.fields,help:website_cookiebot.field_website__cookiebot_dgid
msgid "Get this code from Cookiebot to enable it on the website."
msgstr ""
#. module: website_cookiebot
#: model:ir.model,name:website_cookiebot.model_website
msgid "Website"
msgstr ""

View file

@ -0,0 +1,10 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
# We're adding cookiebot_enabled to the website so it's easier to disable the
# cookiebot scripts temporarily
env["website"].search([("cookiebot_dgid", "!=", False)]).cookiebot_enabled = True

View file

@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import website

View file

@ -0,0 +1,14 @@
# Copyright 2020 Trey - Antonio González <antonio@trey.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Website(models.Model):
_inherit = "website"
cookiebot_dgid = fields.Char(
string="Cookiebot Domain Group ID",
help="Get this code from Cookiebot to enable it on the website.",
)
cookiebot_enabled = fields.Boolean()

View file

@ -0,0 +1,11 @@
To configure this module, you need to:
#. Go to *Website > Configuration > Settings*
#. Under *Select the Website to Configure*, choose a website.
#. In the privacy section enable *Cookiebot* option.
#. Click on *`How to configure Cookiebot <https://cookiebot.com/goto/help>`__*.
#. Follow the instructions, except step 3 (do not insert the ``<script>`` tags, the module will do it for you).
#. Fill in your *Domain Group ID* (e.g. ``00000000-0000-0000-0000-000000000000``)
#. Click on the *Save* button.
⚠️ **This module will do nothing unless configured and linked with Cookiebot.**

View file

@ -0,0 +1,8 @@
* `Trey <https://www.trey.es>`__:
* Jorge Camacho <jorge@trey.es>
* Antonio González <antonio@trey.es>
* `Tecnativa <https://www.tecnativa.com/>`__:
* Jairo Llopis
* Stefan Ungureanu
* Pilar Vargas

View file

@ -0,0 +1,2 @@
This module integrates Odoo website with `Cookiebot <https://www.cookiebot.com/>`__,
to ask for consent before installing cookies on users' browsers.

View file

@ -0,0 +1,10 @@
To use this module, once configured for your website, you just need to browse
that website. You will see the Cookiebot consent banner, and a *Cookies Policy*
link in the footer.
.. figure:: ../static/description/screenshot.png
:alt: Cookiebot consent banner
Remember that, if your browser is configured to block 3rd party cookies,
trackers or consent banners, you won't notice the change. Disable any of those
protections to experiment the benefits.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

View file

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Website Cookiebot</title>
</head>
<body>
<div class="row">
<div class="col-md-12">
<h1>Website Cookiebot</h1>
<p>
<a class="reference external" href="https://odoo-community.org/page/development-status">
<img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png"/>
</a>
<a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html">
<img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png"/>
</a>
<a class="reference external" href="https://github.com/OCA/website/tree/13.0/website_google_tag_manager">
<img alt="OCA/website" src="https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github"/>
</a>
<a class="reference external" href="https://translation.odoo-community.org/projects/website-13-0/website-13-0-website_google_tag_manager">
<img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png"/>
</a>
<a class="reference external" href="https://runbot.odoo-community.org/runbot/186/13.0">
<img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png"/>
</a>
</p>
<p>
This module integrates Odoo website with GDPR through the functionality of
<a class="reference external" href="https://www.cookiebot.com/">Cookiebot</a>, you need to register your website
domain in Cookiebot's portal.
</p>
<p><strong>Table of contents</strong></p>
<div>
<ul>
<li><a href="#configuration" id="id1">Configuration</a></li>
<li><a href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li>
<a href="#credits" id="id3">Credits</a>
<ul>
<li><a href="#authors" id="id4">Autor</a></li>
<li><a href="#contributors" id="id5">Contributors</a></li>
<li><a href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div id="configuration">
<h1><a href="#id1">Configuration</a></h1>
<ol>
<li>Go to <em>Website &gt; Configuration &gt; Settings</em>.</li>
<li>Search "Cookiebot" option.</li>
<li>Fill in your 'Cookiebot ID' (e.g. '00000000-0000-0000-0000-000000000000').</li>
<li>Click on "Save" button</li>
</ol>
</div>
<div id="bug-tracker">
<h1><a href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/website/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/website/issues/new?body=module:%20website_google_tag_manager%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div id="credits">
<h1><a href="#id3">Credits</a></h1>
<div id="authors">
<h2><a href="#id4">Authors</a></h2>
<ul>
<li>Trey, Kilobytes de Soluciones</li>
</ul>
</div>
<div id="contributors">
<h2><a href="#id5">Contributors</a></h2>
<ul>
<li>
<a class="reference external" href="http://www.trey.es">Trey</a>:
<ul>
<li>Jorge Camacho &lt;<a class="reference external" href="mailto:jorge@trey.es">jorge&#64;trey.es</a>&gt;</li>
<li>Antonio González &lt;<a class="reference external" href="mailto:antonio@trey.es">antonio&#64;trey.es</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div id="maintainers">
<h2><a href="#id6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/website/tree/13.0/website_google_tag_manager">OCA/website</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Tecnativa - Jairo Llopis
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
<template id="frontend_layout" inherit_id="website.layout">
<!-- This should be the first script loaded;
see https://cookiebot.com/goto/help -->
<xpath expr="//head/script" position="before">
<t
t-if="website.cookiebot_enabled and website.cookiebot_dgid and not editable"
>
<script
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
t-att-data-cbid="website.cookiebot_dgid"
data-blockingmode="auto"
type="text/javascript"
/>
</t>
</xpath>
<!-- Google Analytics prior consent protection;
see https://support.cookiebot.com/hc/en-us/articles/360003813893-Controlling-Google-Analytics-Universal-with-Cookiebot -->
<xpath expr="//script[@id='tracking_code']" position="attributes">
<attribute
name="t-att-type"
>website.cookiebot_enabled and website.cookiebot_dgid and 'text/plain'</attribute>
<attribute name="data-cookieconsent">statistics</attribute>
</xpath>
</template>
</data>

View file

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Tecnativa - Jairo Llopis
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
<template id="layout_footer_copyright" inherit_id="website.footer_custom">
<xpath
expr="//footer//div/span[hasclass('o_footer_copyright_name')]"
position="after"
>
<span t-if="website.cookiebot_enabled and website.cookiebot_dgid">- <a
href="/legal/cookies-policy"
>Cookies Policy</a></span>
</xpath>
</template>
<template id="cookies" name="Cookies Policy">
<t t-call="website.layout">
<div id="wrap">
<div id="oe_structure_before_50" class="oe_structure">
<section data-snippet-id="title">
<h1 class="text-center">Cookie Declaration</h1>
</section>
</div>
<section
t-if="website.cookiebot_enabled and website.cookiebot_dgid and not editable"
class="mb-5 mt-5"
>
<div class="container">
<div class="row">
<div class="col-12">
<script
id="CookieDeclaration"
t-attf-src="https://consent.cookiebot.com/{{website.cookiebot_dgid}}/cd.js"
type="text/javascript"
async=""
/>
</div>
</div>
</div>
</section>
<div id="oe_structure_after_50" class="oe_structure" />
</div>
</t>
</template>
<record id="cookies_page" model="website.page">
<field name="url">/legal/cookies-policy</field>
<field name="website_published" eval="True" />
<field name="view_id" ref="cookies" />
</record>
</data>

View file

@ -0,0 +1 @@
from . import res_config_settings

View file

@ -0,0 +1,32 @@
# Copyright 2020 Trey - Antonio González <antonio@trey.es>
# Copyright 2021 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
cookiebot_dgid = fields.Char(
string="Domain Group ID",
related="website_id.cookiebot_dgid",
readonly=False,
)
cookiebot_enabled = fields.Boolean(
string="Cookiebot",
related="website_id.cookiebot_enabled",
readonly=False,
)
@api.onchange("website_cookies_bar")
def _onchange_website_cookies_bar(self):
for record in self:
if record.website_cookies_bar:
record.cookiebot_enabled = False
@api.onchange("cookiebot_enabled")
def _onchange_cookiebot_enabled(self):
for record in self:
if record.cookiebot_enabled:
record.website_cookies_bar = False

View file

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Tecnativa - Jairo Llopis
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@id='website_cookies_bar_setting']" position="after">
<div class="col-xs-12 col-md-6 o_setting_box" id="cookiebot_setting">
<div class="o_setting_left_pane">
<field name="cookiebot_enabled" />
</div>
<div class="o_setting_right_pane">
<label for="cookiebot_enabled" />
<span
class="fa fa-lg fa-globe"
title="Values set here are website-specific."
groups="website.group_multi_website"
/>
<div class="text-muted">
Ask for consent on cookies usage
</div>
<div
class="content-group"
attrs="{'invisible': [('cookiebot_enabled', '=', False)]}"
id="cookiebot_fields"
>
<div class="mt16">
<a
href="https://cookiebot.com/goto/help"
class="oe_link"
target="_blank"
>
<i class="fa fa-arrow-right" />
How to configure Cookiebot.
</a>
<span class="text-muted">
Instead of step 3, paste here your Domain Group ID.
</span>
</div>
<div class="row mt16">
<label
class="col-md-3 o_light_label"
for="cookiebot_dgid"
/>
<field
name="cookiebot_dgid"
placeholder="00000000-0000-0000-0000-000000000000"
attrs="{'required': [('cookiebot_enabled', '=', True)]}"
/>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>