diff --git a/cookie_consent_manager/README.rst b/cookie_consent_manager/README.rst new file mode 100644 index 000000000..cddf40d53 --- /dev/null +++ b/cookie_consent_manager/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Cookie Consent Manager +====================== +Cookie consent Manger to handle cookie template + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developers: (V16) Rosmy John, Jumana Jabin MP ,Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/cookie_consent_manager/__init__.py b/cookie_consent_manager/__init__.py new file mode 100644 index 000000000..8904eca2c --- /dev/null +++ b/cookie_consent_manager/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C)2023-TODAY Cybrosys Technologies(). +# Author: Rosmy John@cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models diff --git a/cookie_consent_manager/__manifest__.py b/cookie_consent_manager/__manifest__.py new file mode 100644 index 000000000..49556e9a4 --- /dev/null +++ b/cookie_consent_manager/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C)2023-TODAY Cybrosys Technologies(). +# Author: Rosmy John@cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Cookie Consent Manager', + 'version': '16.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Manage and customize website cookie consent templates', + 'description': 'The Cookie Consent Manager allows website owners to ' + 'manage and customize their cookie consent templates. ' + 'With this module, you can create, modify, and display ' + 'customized cookie consent banners to comply with ' + 'data protection regulations and improve user ' + 'privacy on your Odoo website.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base_setup', 'website'], + 'data': [ + 'security/ir.model.access.csv', + 'views/res_config_settings_views.xml', + 'views/res_users_views.xml', + 'views/cookie_information_views.xml', + 'views/website_cookie_bar_templates.xml' + ], + 'assets': { + 'web.assets_frontend': [ + 'cookie_consent_manager/static/src/js/website_cookie_bar_templates.js' + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/cookie_consent_manager/doc/RELEASE_NOTES.md b/cookie_consent_manager/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..b81113da5 --- /dev/null +++ b/cookie_consent_manager/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.10.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for Cookie Consent Manager diff --git a/cookie_consent_manager/models/__init__.py b/cookie_consent_manager/models/__init__.py new file mode 100644 index 000000000..17cbb7f64 --- /dev/null +++ b/cookie_consent_manager/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Rosmy John@cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import cookie_information +from . import res_config_settings +from . import res_users diff --git a/cookie_consent_manager/models/cookie_information.py b/cookie_consent_manager/models/cookie_information.py new file mode 100644 index 000000000..595f30b7a --- /dev/null +++ b/cookie_consent_manager/models/cookie_information.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C)2023-TODAY Cybrosys Technologies(). +# Author: Rosmy John@cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, fields, models + +OBJECT_COLOR = { + "0": "No color", + "1": "Red", + "2": "Orange", + "3": "Yellow", + "4": "Light blue", + "5": "Dark purple", + "6": "Salmon pink", + "7": "Medium blue", + "8": "Dark blue", + "9": "Fuchsia", + "10": "Green", + "11": "Purple", +} + + +class CookieInformation(models.Model): + """This class is used to store information about a cookie template.""" + _name = "cookie.information" + _description = "Cookie Information" + _rec_name = 'template_title' + + template_title = fields.Char(string="Template Name", + help="Title of the template") + pop_up_text = fields.Char(string="Pop Up text", help="Cookie message") + cookie_color = fields.Integer(string="Cookie Color", + help="Change the color of cookie") + is_change_pop_up_position = fields.Boolean(string="Change Pop up position", + help="Change the pop up " + "position") + is_change_pop_up_position_top = fields.Boolean( + string="Move to Top", help="Change the pop up position to top") + is_change_pop_up_position_bottom = fields.Boolean( + string="Move to Bottom", help="Change the pop up position to bottom") + pop_up_position_top = fields.Selection([ + ('top_left', 'Top Left'), ('top_right', 'Top Right'), + ('top_center', 'Top Center'), + ('full_top_container', 'Full Top Container')], + help="Change the pop up position on top", + string="Pop Up Position on Top", ) + pop_up_position_bottom = fields.Selection([ + ('bottom_left', 'Bottom Left'), ('bottom_right', 'Bottom Right'), + ('bottom_center', 'Bottom Center'), + ('full_bottom_container', 'Full Bottom Container')], + help="Change the pop up position on bottom", + string="Pop Up Position on Bottom", ) + accept_btn_txt = fields.Char(string="Accept button text", + help="Name for the Accept button") + reject_btn_txt = fields.Char(string="Reject button text", + help="Name for the reject button") + cookie_policy_btn = fields.Char(string="Read button text", + help="Name for Cookie Policy") + + @api.model + def cookie_enabled(self, uid): + """ Enable cookies for a user.This method is used to enable cookies + for a specific user identified by their user ID (uid).""" + res_user = self.env['res.users'].sudo().browse(int(uid)) + res_user.cookies_enabled = True + + @api.model + def _get_color(self, value): + """Get the color corresponding to the given value.""" + return OBJECT_COLOR[str(value)] diff --git a/cookie_consent_manager/models/res_config_settings.py b/cookie_consent_manager/models/res_config_settings.py new file mode 100644 index 000000000..96838d4cf --- /dev/null +++ b/cookie_consent_manager/models/res_config_settings.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C)2023-TODAY Cybrosys Technologies(). +# Author: Rosmy John@cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """This class represents the user can select the cookie template """ + _inherit = 'res.config.settings' + + cookie_template_id = fields.Many2one( + 'cookie.information', string="Cookie Template", + config_parameter='cookie_consent_manager.cookie_template_id', + help="Cookie Template") diff --git a/cookie_consent_manager/models/res_users.py b/cookie_consent_manager/models/res_users.py new file mode 100644 index 000000000..c1f19719e --- /dev/null +++ b/cookie_consent_manager/models/res_users.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C)2023-TODAY Cybrosys Technologies(). +# Author: Rosmy John@cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class ResUsers(models.Model): + """ Extend the 'res.users' model to add a field indicating whether cookies + are enabled for a user. """ + _inherit = 'res.users' + + cookies_enabled = fields.Boolean(string='Cookies Enabled', + help='Indicates whether cookies are ' + 'enabled for this user.') diff --git a/cookie_consent_manager/security/ir.model.access.csv b/cookie_consent_manager/security/ir.model.access.csv new file mode 100644 index 000000000..8411fd485 --- /dev/null +++ b/cookie_consent_manager/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_cookie_information_model,access.cookie.information.model,model_cookie_information,base.group_system,1,1,1,1 diff --git a/cookie_consent_manager/static/description/assets/icons/check.png b/cookie_consent_manager/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/check.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/chevron.png b/cookie_consent_manager/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/chevron.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/cogs.png b/cookie_consent_manager/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/cogs.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/consultation.png b/cookie_consent_manager/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/consultation.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/ecom-black.png b/cookie_consent_manager/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/ecom-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/education-black.png b/cookie_consent_manager/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/education-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/hotel-black.png b/cookie_consent_manager/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/hotel-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/license.png b/cookie_consent_manager/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/license.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/lifebuoy.png b/cookie_consent_manager/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/lifebuoy.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/manufacturing-black.png b/cookie_consent_manager/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/manufacturing-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/pos-black.png b/cookie_consent_manager/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/pos-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/puzzle.png b/cookie_consent_manager/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/puzzle.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/restaurant-black.png b/cookie_consent_manager/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/restaurant-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/service-black.png b/cookie_consent_manager/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/service-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/trading-black.png b/cookie_consent_manager/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/trading-black.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/training.png b/cookie_consent_manager/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/training.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/update.png b/cookie_consent_manager/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/update.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/user.png b/cookie_consent_manager/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/user.png differ diff --git a/cookie_consent_manager/static/description/assets/icons/wrench.png b/cookie_consent_manager/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/cookie_consent_manager/static/description/assets/icons/wrench.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/categories.png b/cookie_consent_manager/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/categories.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/check-box.png b/cookie_consent_manager/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/check-box.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/compass.png b/cookie_consent_manager/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/compass.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/corporate.png b/cookie_consent_manager/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/corporate.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/customer-support.png b/cookie_consent_manager/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/customer-support.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/cybrosys-logo.png b/cookie_consent_manager/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/cybrosys-logo.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/features.png b/cookie_consent_manager/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/features.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/logo.png b/cookie_consent_manager/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/logo.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/pictures.png b/cookie_consent_manager/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/pictures.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/pie-chart.png b/cookie_consent_manager/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/pie-chart.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/right-arrow.png b/cookie_consent_manager/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/right-arrow.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/star.png b/cookie_consent_manager/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/star.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/support.png b/cookie_consent_manager/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/support.png differ diff --git a/cookie_consent_manager/static/description/assets/misc/whatsapp.png b/cookie_consent_manager/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/misc/whatsapp.png differ diff --git a/cookie_consent_manager/static/description/assets/modules/11.png b/cookie_consent_manager/static/description/assets/modules/11.png new file mode 100644 index 000000000..e90228872 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/modules/11.png differ diff --git a/cookie_consent_manager/static/description/assets/modules/12.png b/cookie_consent_manager/static/description/assets/modules/12.png new file mode 100644 index 000000000..df65629bf Binary files /dev/null and b/cookie_consent_manager/static/description/assets/modules/12.png differ diff --git a/cookie_consent_manager/static/description/assets/modules/13.png b/cookie_consent_manager/static/description/assets/modules/13.png new file mode 100644 index 000000000..7a9d3b1f6 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/modules/13.png differ diff --git a/cookie_consent_manager/static/description/assets/modules/14.png b/cookie_consent_manager/static/description/assets/modules/14.png new file mode 100644 index 000000000..6058f6c3b Binary files /dev/null and b/cookie_consent_manager/static/description/assets/modules/14.png differ diff --git a/cookie_consent_manager/static/description/assets/modules/15.png b/cookie_consent_manager/static/description/assets/modules/15.png new file mode 100644 index 000000000..a44d454aa Binary files /dev/null and b/cookie_consent_manager/static/description/assets/modules/15.png differ diff --git a/cookie_consent_manager/static/description/assets/modules/16.png b/cookie_consent_manager/static/description/assets/modules/16.png new file mode 100644 index 000000000..d9374733c Binary files /dev/null and b/cookie_consent_manager/static/description/assets/modules/16.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/hero.gif b/cookie_consent_manager/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..ff20814f9 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/hero.gif differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img1.png b/cookie_consent_manager/static/description/assets/screenshots/img1.png new file mode 100644 index 000000000..e8d502767 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img1.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img2.png b/cookie_consent_manager/static/description/assets/screenshots/img2.png new file mode 100644 index 000000000..371735de2 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img2.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img3.png b/cookie_consent_manager/static/description/assets/screenshots/img3.png new file mode 100644 index 000000000..02e3025bf Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img3.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img4.png b/cookie_consent_manager/static/description/assets/screenshots/img4.png new file mode 100644 index 000000000..41f051551 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img4.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img5.png b/cookie_consent_manager/static/description/assets/screenshots/img5.png new file mode 100644 index 000000000..ccd71b8ec Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img5.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img6.png b/cookie_consent_manager/static/description/assets/screenshots/img6.png new file mode 100644 index 000000000..30073c69b Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img6.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img7.png b/cookie_consent_manager/static/description/assets/screenshots/img7.png new file mode 100644 index 000000000..5b4d72944 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img7.png differ diff --git a/cookie_consent_manager/static/description/assets/screenshots/img8.png b/cookie_consent_manager/static/description/assets/screenshots/img8.png new file mode 100644 index 000000000..f402463d9 Binary files /dev/null and b/cookie_consent_manager/static/description/assets/screenshots/img8.png differ diff --git a/cookie_consent_manager/static/description/banner.png b/cookie_consent_manager/static/description/banner.png new file mode 100644 index 000000000..591b1d6e7 Binary files /dev/null and b/cookie_consent_manager/static/description/banner.png differ diff --git a/cookie_consent_manager/static/description/icon.png b/cookie_consent_manager/static/description/icon.png new file mode 100644 index 000000000..537ddc111 Binary files /dev/null and b/cookie_consent_manager/static/description/icon.png differ diff --git a/cookie_consent_manager/static/description/index.html b/cookie_consent_manager/static/description/index.html new file mode 100644 index 000000000..548dce1c8 --- /dev/null +++ b/cookie_consent_manager/static/description/index.html @@ -0,0 +1,676 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+

+ Cookie Consent Manager

+

+ Cookie Consent Manager Can Create Their Own Cookies + Templates +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module helps to customize your own template for + cookie.

+ +
+
+ +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Create a New Design for Cookie Settings.

+
+
+
+ +
+
+

+ Screenshots +

+
+ +
+

+ Cookie Settings on the Configuration

+ + +
+ +
+

+ Create a New Template for Cookie.

+

+ Setting the cookie position color and button name also. +

+ + +
+
+

+ Enable Cookie from Settings.

+ +
+
+

+ Choose the Template from Settings.

+ +
+
+

+ We Can Change the Cookie Position to Top and Change + Color.

+ +
+
+

+ We Can Change the Cookie Position to the Bottom and Change + Color.

+ +
+
+ + +
+
+ +
+

+ Related + Products +

+
+
+
+ +
+
+ + + + +
+
+ +
+

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need + help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on + WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ +
+
\ No newline at end of file diff --git a/cookie_consent_manager/static/src/js/website_cookie_bar_templates.js b/cookie_consent_manager/static/src/js/website_cookie_bar_templates.js new file mode 100644 index 000000000..aeeced070 --- /dev/null +++ b/cookie_consent_manager/static/src/js/website_cookie_bar_templates.js @@ -0,0 +1,39 @@ +/* @odoo-module */ +import { session } from "@web/session"; +var rpc = require('web.rpc'); + const publicWidget = require("web.public.widget"); + /** + * Cookie Consent Manager widget. + * + * This widget manages the display of the cookie consent bar and handles user actions related to cookies. + */ + publicWidget.registry.CookieConsentManager = + publicWidget.Widget.extend({ + selector: "#website_cookies_bar", + events: { + "click #cookies-consent-all": "hideCookie", + "click #cookies-close": "hideCookie", + "click #cookies-consent-essential": "hideCookie", + }, + start : function (){ + /** + * Start function for the widget. + * If the user is not logged in, the modal is hidden. + */ + if ( ! session.user_id ) + this.$target.find('.modal').hide(); + }, + hideCookie: async function (ev) { + /** + * Hide the cookie consent modal and send a request to enable cookies for the user. + * + * @param {Event} ev - The click event. + */ + this.$target.find('.modal').hide(); + await rpc.query({ + model:'cookie.information', + method : 'cookie_enabled', + args : [session.user_id] + }) + } + }); diff --git a/cookie_consent_manager/views/cookie_information_views.xml b/cookie_consent_manager/views/cookie_information_views.xml new file mode 100644 index 000000000..53cfc5227 --- /dev/null +++ b/cookie_consent_manager/views/cookie_information_views.xml @@ -0,0 +1,67 @@ + + + + + Cookie Information + cookie.information + tree,form + + + + cookie.information.view.form + + cookie.information + +
+ +
+
+ + + + + + + + + + + + + + + + +
+
+
+
+ + + cookie.information.view.tree + + cookie.information + + + + + + + + + + + +
diff --git a/cookie_consent_manager/views/res_config_settings_views.xml b/cookie_consent_manager/views/res_config_settings_views.xml new file mode 100644 index 000000000..e7b5444d8 --- /dev/null +++ b/cookie_consent_manager/views/res_config_settings_views.xml @@ -0,0 +1,27 @@ + + + + + + res.config.settings.view.form.inherit.cookie.consent.manager + + res.config.settings + + + + +
+
+
+
+
+ + + + diff --git a/cookie_consent_manager/views/res_users_views.xml b/cookie_consent_manager/views/res_users_views.xml new file mode 100644 index 000000000..b0d1902c3 --- /dev/null +++ b/cookie_consent_manager/views/res_users_views.xml @@ -0,0 +1,15 @@ + + + + + res.users.groups + res.users + + + + + + + + + diff --git a/cookie_consent_manager/views/website_cookie_bar_templates.xml b/cookie_consent_manager/views/website_cookie_bar_templates.xml new file mode 100644 index 000000000..cc88b0043 --- /dev/null +++ b/cookie_consent_manager/views/website_cookie_bar_templates.xml @@ -0,0 +1,435 @@ + + + +