diff --git a/whatsapp_chat_layout/README.rst b/whatsapp_chat_layout/README.rst new file mode 100644 index 000000000..141d5775e --- /dev/null +++ b/whatsapp_chat_layout/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Whatsapp Chat Layout in Odoo Discuss +================== +* Whatsapp Chat Layout in Odoo Discuss module for Odoo 17. + +Installation +============ + - www.odoo.com/documentation/17.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer:(V16) Afra M P + (V17) Gayathri v +Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + diff --git a/whatsapp_chat_layout/__init__.py b/whatsapp_chat_layout/__init__.py new file mode 100644 index 000000000..ec001bce9 --- /dev/null +++ b/whatsapp_chat_layout/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri v(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models +from . import controllers diff --git a/whatsapp_chat_layout/__manifest__.py b/whatsapp_chat_layout/__manifest__.py new file mode 100644 index 000000000..8c24413e5 --- /dev/null +++ b/whatsapp_chat_layout/__manifest__.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Whatsapp Chat Layout in Odoo Discuss', + 'version': '17.0.1.0.0', + 'category': 'Discuss', + 'summary': 'Redesigned the discuss module into whatsapp chat layout', + 'description': 'Odoo discuss with whatsapp view', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'mail', 'base_setup', 'web'], + 'data': [ + 'views/res_config_settings.xml' + ], + 'assets': { + 'web.assets_backend': [ + 'whatsapp_chat_layout/static/src/css/discuss.css', + 'whatsapp_chat_layout/static/src/css/thread.css', + 'whatsapp_chat_layout/static/src/css/color.css', + 'whatsapp_chat_layout/static/src/js/discuss_sidebar.js', + 'whatsapp_chat_layout/static/src/js/discuss_container.js', + 'whatsapp_chat_layout/static/src/xml/discuss_sidebar.xml', + 'whatsapp_chat_layout/static/src/xml/discuss_sidebar_category.xml', + 'whatsapp_chat_layout/static/src/xml/composer.xml' + 'whatsapp_chat_layout/static/src/xml/discuss_sidebar_categories_advanced.xml' + ], + }, + 'images': [ + 'static/description/banner.jpg' + ], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/whatsapp_chat_layout/controllers/__init__.py b/whatsapp_chat_layout/controllers/__init__.py new file mode 100644 index 000000000..542998e07 --- /dev/null +++ b/whatsapp_chat_layout/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import whatsapp_chat_layout diff --git a/whatsapp_chat_layout/controllers/whatsapp_chat_layout.py b/whatsapp_chat_layout/controllers/whatsapp_chat_layout.py new file mode 100644 index 000000000..d48185036 --- /dev/null +++ b/whatsapp_chat_layout/controllers/whatsapp_chat_layout.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import http +from odoo.http import request + + +class Color(http.Controller): + """The ProjectFilter class provides the filter option to the js. + When applying the filter returns the corresponding data.""" + + @http.route('/select_color', auth='public', type='json') + def get_color(self): + """Function to return values into js""" + colors = {'background_color': request.env[ + 'ir.config_parameter'].sudo().get_param( + 'base_setup.background_color'), 'layout_color': request.env[ + 'ir.config_parameter'].sudo().get_param( + 'base_setup.layout_color'), + 'background_image': request.env.user.company_id.background_image} + return colors + + @http.route('/select_user_image', auth='public', type='json') + def get_user_image(self): + """function to get current user image and return in js""" + return request.env.user.partner_id.image_1920 diff --git a/whatsapp_chat_layout/doc/RELEASE_NOTES.md b/whatsapp_chat_layout/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..54952d6bf --- /dev/null +++ b/whatsapp_chat_layout/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 23.02.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Whatsapp Chat Layout in Odoo Discuss \ No newline at end of file diff --git a/whatsapp_chat_layout/models/__init__.py b/whatsapp_chat_layout/models/__init__.py new file mode 100644 index 000000000..9aa3c3a2b --- /dev/null +++ b/whatsapp_chat_layout/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import res_config_settings +from . import res_company diff --git a/whatsapp_chat_layout/models/res_company.py b/whatsapp_chat_layout/models/res_company.py new file mode 100644 index 000000000..4af63e491 --- /dev/null +++ b/whatsapp_chat_layout/models/res_company.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class ResCompany(models.Model): + """Inherit the model res_company to store the image""" + _inherit = 'res.company' + + background_image = fields.Binary(string="Background Image", attachment=True, + help='Provide background image') diff --git a/whatsapp_chat_layout/models/res_config_settings.py b/whatsapp_chat_layout/models/res_config_settings.py new file mode 100644 index 000000000..d1f85bf00 --- /dev/null +++ b/whatsapp_chat_layout/models/res_config_settings.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """Inherit the model res_config_settings to add fields""" + _inherit = 'res.config.settings' + + background_color = fields.Char(string='Background Color', + config_parameter='base_setup.background_color', + default='#FFFFFF', + help='Select discuss background color') + layout_color = fields.Char(string='Layout Color', + config_parameter='base_setup.layout_color', + default='#3a8180', + help='select discuss layout color') + chat_background = fields.Binary(string="Background Image", + related='company_id.background_image', + readonly=False, + help='Add background image for discuss') diff --git a/whatsapp_chat_layout/models/res_users.py b/whatsapp_chat_layout/models/res_users.py new file mode 100644 index 000000000..3265e8844 --- /dev/null +++ b/whatsapp_chat_layout/models/res_users.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, models + + +class ResUsers(models.Model): + """Inherit the model res_users to add a function to call rpc query in js""" + _inherit = 'res.users' + + @api.model + def get_user_image(self): + """function to get current user image and return in js""" + return self.env.user.partner_id.image_1920 diff --git a/whatsapp_chat_layout/static/description/assets/icons/capture (1).png b/whatsapp_chat_layout/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/capture (1).png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/check.png b/whatsapp_chat_layout/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/check.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/chevron.png b/whatsapp_chat_layout/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/chevron.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/cogs.png b/whatsapp_chat_layout/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/cogs.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/consultation.png b/whatsapp_chat_layout/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/consultation.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/ecom-black.png b/whatsapp_chat_layout/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/ecom-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/education-black.png b/whatsapp_chat_layout/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/education-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/hotel-black.png b/whatsapp_chat_layout/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/hotel-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/img.png b/whatsapp_chat_layout/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/img.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/license.png b/whatsapp_chat_layout/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/license.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/lifebuoy.png b/whatsapp_chat_layout/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/lifebuoy.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/manufacturing-black.png b/whatsapp_chat_layout/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/manufacturing-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/photo-capture.png b/whatsapp_chat_layout/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/photo-capture.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/pos-black.png b/whatsapp_chat_layout/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/pos-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/puzzle.png b/whatsapp_chat_layout/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/puzzle.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/restaurant-black.png b/whatsapp_chat_layout/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/restaurant-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/service-black.png b/whatsapp_chat_layout/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/service-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/trading-black.png b/whatsapp_chat_layout/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/trading-black.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/training.png b/whatsapp_chat_layout/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/training.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/update.png b/whatsapp_chat_layout/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/update.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/user.png b/whatsapp_chat_layout/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/user.png differ diff --git a/whatsapp_chat_layout/static/description/assets/icons/wrench.png b/whatsapp_chat_layout/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/wrench.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/Cybrosys R.png b/whatsapp_chat_layout/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/Cybrosys R.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/categories.png b/whatsapp_chat_layout/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/categories.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/check-box.png b/whatsapp_chat_layout/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/check-box.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/check.png b/whatsapp_chat_layout/static/description/assets/misc/check.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/check.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/compass.png b/whatsapp_chat_layout/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/compass.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/corporate.png b/whatsapp_chat_layout/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/corporate.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/customer-support.png b/whatsapp_chat_layout/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/customer-support.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/cybrosys-logo.png b/whatsapp_chat_layout/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/cybrosys-logo.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/email.svg b/whatsapp_chat_layout/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/whatsapp_chat_layout/static/description/assets/misc/features.png b/whatsapp_chat_layout/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/features.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/logo.png b/whatsapp_chat_layout/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/logo.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/phone.svg b/whatsapp_chat_layout/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/whatsapp_chat_layout/static/description/assets/misc/pictures.png b/whatsapp_chat_layout/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/pictures.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/pie-chart.png b/whatsapp_chat_layout/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/pie-chart.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/right-arrow.png b/whatsapp_chat_layout/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/right-arrow.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/star (1) 2.svg b/whatsapp_chat_layout/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_chat_layout/static/description/assets/misc/star.png b/whatsapp_chat_layout/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/star.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/support (1) 1.svg b/whatsapp_chat_layout/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_chat_layout/static/description/assets/misc/support-email.svg b/whatsapp_chat_layout/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/whatsapp_chat_layout/static/description/assets/misc/support.png b/whatsapp_chat_layout/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/support.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/tick-mark.svg b/whatsapp_chat_layout/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/whatsapp_chat_layout/static/description/assets/misc/whatsapp 1.svg b/whatsapp_chat_layout/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_chat_layout/static/description/assets/misc/whatsapp.png b/whatsapp_chat_layout/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/misc/whatsapp.png differ diff --git a/whatsapp_chat_layout/static/description/assets/misc/whatsapp.svg b/whatsapp_chat_layout/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/whatsapp_chat_layout/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/whatsapp_chat_layout/static/description/assets/modules/1.gif b/whatsapp_chat_layout/static/description/assets/modules/1.gif new file mode 100644 index 000000000..8ac32db03 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/1.gif differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/1.png b/whatsapp_chat_layout/static/description/assets/modules/1.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/1.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/2.jpg b/whatsapp_chat_layout/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..a1dc39c89 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/2.jpg differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/2.png b/whatsapp_chat_layout/static/description/assets/modules/2.png new file mode 100644 index 000000000..164eb62c7 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/2.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/5.png b/whatsapp_chat_layout/static/description/assets/modules/5.png new file mode 100644 index 000000000..a80a0d9dc Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/5.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/banner.jpg b/whatsapp_chat_layout/static/description/assets/modules/banner.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/banner.jpg differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/1.png b/whatsapp_chat_layout/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..46b14ac60 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/1.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/10.png b/whatsapp_chat_layout/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..81f8ea587 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/10.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/2.png b/whatsapp_chat_layout/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..f8ba28a9a Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/2.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/3.png b/whatsapp_chat_layout/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..2d82c7890 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/3.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/4.png b/whatsapp_chat_layout/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..37d32bf01 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/4.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/5.png b/whatsapp_chat_layout/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..291edc786 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/5.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/6.png b/whatsapp_chat_layout/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..a8eba924b Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/6.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/7.png b/whatsapp_chat_layout/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..bbe983649 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/7.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/8.png b/whatsapp_chat_layout/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..46a721261 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/8.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/9.png b/whatsapp_chat_layout/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..ff09843e1 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/9.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/hero.gif b/whatsapp_chat_layout/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..be9578fea Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/hero.gif differ diff --git a/whatsapp_chat_layout/static/description/banner.jpg b/whatsapp_chat_layout/static/description/banner.jpg new file mode 100644 index 000000000..8b4d469f9 Binary files /dev/null and b/whatsapp_chat_layout/static/description/banner.jpg differ diff --git a/whatsapp_chat_layout/static/description/icon.png b/whatsapp_chat_layout/static/description/icon.png new file mode 100644 index 000000000..09271b5d8 Binary files /dev/null and b/whatsapp_chat_layout/static/description/icon.png differ diff --git a/whatsapp_chat_layout/static/description/index.html b/whatsapp_chat_layout/static/description/index.html new file mode 100644 index 000000000..84e4fc97a --- /dev/null +++ b/whatsapp_chat_layout/static/description/index.html @@ -0,0 +1,824 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Whatsapp Chat Layout in Odoo Discuss

+

+ Detailed Whatsapp Chat Layout in Odoo Discuss View. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Dynamically change background and Layout color.

+
+
+
+
+
+
+ +
+
+

+ Dynamically change background image.

+
+
+
+
+
+
+ +
+
+

+ Current user chat view in left side.

+
+
+
+
+
+
+ +
+
+

+ Easy to Use and Manage.

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

+ Rearranged the sidebar and the Chatter.

+
+
+
+
+
+
+ +
+
+

+ Click Mail icon to view the inbox,starred and history messages.

+
+
+
+
+
+
+ +
+
+

+ Click Chat icon to view the Direct messages.

+
+
+
+
+
+
+ +
+
+

+ Click Channel icon to view the Channels.

+
+
+
+
+
+
+ +
+
+

+ Click Start a meeting icon to start a group video call.

+
+
+
+
+
+
+ +
+
+

+ Current user chat view in left side.

+
+
+
+
+
+
+ +
+
+

+ Change background color and layout color in configuration settings.

+
+
+
+
+
+
+ +
+
+

+ After Changing.

+
+
+
+
+
+
+ +
+
+

+ Change background image in configuration settings.

+
+
+
+
+
+
+ +
+
+

+ After Setting the Background Image

+
+
+
+
+
+
+
    +
  • + Dynamically change background and Layout color. +
  • +
  • + Dynamically change background image. +
  • +
  • + Current user chat view in left side. +
  • +
  • + Easy to Use and Manage. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:23rd Feb 2024 +
+

+ + Initial Commit for Whatsapp Chat Layout in Odoo Discuss.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/whatsapp_chat_layout/static/src/css/color.css b/whatsapp_chat_layout/static/src/css/color.css new file mode 100644 index 000000000..c0cad3742 --- /dev/null +++ b/whatsapp_chat_layout/static/src/css/color.css @@ -0,0 +1,4 @@ +:root{ + --background-color: #ffffff; + --layout-color: #3a8180; +} \ No newline at end of file diff --git a/whatsapp_chat_layout/static/src/css/discuss.css b/whatsapp_chat_layout/static/src/css/discuss.css new file mode 100644 index 000000000..0d5bba140 --- /dev/null +++ b/whatsapp_chat_layout/static/src/css/discuss.css @@ -0,0 +1,54 @@ +.o_DiscussSidebar{ + width: 400px; +} +.o_DiscussSidebar_startAMeetingButton { + font-size: 24px; + width: 55px; + height: 65px; + background-color: #eeedee!important; + color: #979797; + border-color: #eeedee; + margin-left: 10px; + padding-top: 18px; +} + +.header { + margin-left: 200px; +} + +.text-700 { + color: gray!important; +} + +.o-mail-DiscussSidebarCategory{ + height: 74px; + background-color: var(--layout-color) !important; +} +.o-mail-DiscussSidebarCategory span{ + color: white!important; +} + +.o-mail-DiscussSidebarCategory-icon{ + color: white!important; +} +.o-mail-DiscussSidebarCategory-add{ + color: white!important; +} + +i.o_DiscussSidebarCategory_command{ + color: white!important; +} + +.o_DiscussSidebar{ + background-color: #FFFFFF!important; +} +.o-mail-ThreadIcon { + border-radius: 50%; + font-size: 34px; + padding-right: 15px; + color: var(--layout-color) !important; +} +.o-mail-DiscussSidebar-item { + color: black; + font-size: 17px; +} diff --git a/whatsapp_chat_layout/static/src/css/thread.css b/whatsapp_chat_layout/static/src/css/thread.css new file mode 100644 index 000000000..a23858ad4 --- /dev/null +++ b/whatsapp_chat_layout/static/src/css/thread.css @@ -0,0 +1,49 @@ +.o_ThreadViewTopbar { + height: 66px; + background-color: #eeedee!important; +} + +.o-mail-Thread.o_ThreadView_messageList { + background-color: var(--background-color) !important; + background-image: var(--background-image) !important; + background-repeat:no-repeat; + background-size:cover; +} +.o-mail-Thread.o_ThreadView_messageList{ + background-color: var(--background-color) !important; + background-image: var(--background-image) !important; + background-repeat:no-repeat; + background-size:cover; +} +.o_Composer{ + background-color: #eeedee!important; + height: 85px; + padding-top: 15px!important; +} + +button.o_Composer_toolButton{ + font-size: 25px; + background-color: #eeedee; +} +.o_Composer_toolButtons { + height: 50px; + background-color: #eeedee!important; +} + +button.o-mail-Composer-send.o-mail-Composer-send { + background-color: var(--layout-color) !important; + color: white; +} +.o_Message.o_MessageList_item.o_MessageList_message { + display: flex; + flex-direction: row-reverse; + justify-content: end; +} +.o_Message.o_MessageList_item.o_MessageList_message { + display: flex; + flex-direction: row-reverse; + justify-content: end; +} +.text-break { + word-break: inherit!important; +} \ No newline at end of file diff --git a/whatsapp_chat_layout/static/src/js/discuss_container.js b/whatsapp_chat_layout/static/src/js/discuss_container.js new file mode 100644 index 000000000..eaafbf3ae --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_container.js @@ -0,0 +1,28 @@ +/** @odoo-module */ +import { Discuss } from "@mail/core/common/discuss"; +import { patch} from "@web/core/utils/patch"; +import { jsonrpc } from "@web/core/network/rpc_service"; +const { useRef } = owl; +import { onMounted } from "@odoo/owl"; + +patch(Discuss.prototype, { + setup() { + super.setup(...arguments); + this.core = useRef("core"); + onMounted(async () => { + var self = this; + await jsonrpc('/select_color', {}).then(function(result) { + if (result.background_color !== false){ + self.core.el.style.setProperty("--background-color",result.background_color + ); + }//set discuss background color + if (result.layout_color !== false){ + document.documentElement.style.setProperty("--layout-color",result.layout_color); + }// set discuss layout color + if (result.background_image !== false){ + self.core.el.style.setProperty("background-image",'url(data:image/png;base64,'+result.background_image+')',"important"); + }// set discuss background image + }); + }); + }, +}); diff --git a/whatsapp_chat_layout/static/src/js/discuss_sidebar.js b/whatsapp_chat_layout/static/src/js/discuss_sidebar.js new file mode 100644 index 000000000..2886fe168 --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_sidebar.js @@ -0,0 +1,61 @@ +/** @odoo-module **/ +import { patch } from "@web/core/utils/patch"; +import { DiscussSidebar } from "@mail/core/web/discuss_sidebar"; +import { DiscussSidebarMailboxes } from "@mail/core/web/discuss_sidebar_mailboxes"; +import { DiscussSidebarStartMeeting } from "@mail/discuss/call/web/discuss_sidebar_start_meeting"; +import { ChannelSelector } from "@mail/discuss/core/web/channel_selector"; +import { VoiceRecorder } from "@mail/discuss/voice_message/common/voice_recorder"; +import { onMounted, onWillStart, useRef } from "@odoo/owl"; +import { useState } from "@odoo/owl"; +import { jsonrpc } from "@web/core/network/rpc_service"; +import { DiscussSidebarCategories } from "@mail/discuss/core/web/discuss_sidebar_categories"; + +patch(DiscussSidebar.prototype, { +setup() { + super.setup(); + this.root = useRef("root") + this.state = useState({ sidebar: 'channels' , chat:'chats'}); + onWillStart(async () => { + await jsonrpc('/select_color', {}).then(function(result) { + console.log('1111111111111111111111') + const root = document.documentElement; + console.log(root,'1111111111111111111111') + + if (result.background_color !== false){ + root.style.setProperty("--background-color",result.background_color); + } + }) + }); + onMounted(this.sidebar) + }, + sidebar(){ + var self = this + jsonrpc('/select_user_image', {}).then(function(result) { + let image = document.createElement('div') + image.innerHTML = '' + self.root.el.querySelector('#img').appendChild(image); + }); + }, + _onClickMail(ev) {// Click function of mail button + this.root.el.querySelector('.mail').classList.remove("d-none"); + this.root.el.querySelector('.channel').classList.add("d-none"); + this.root.el.querySelector('.chat').classList.add("d-none"); + }, + _onClickChat(ev) {// Click function of chat button + this.root.el.querySelector('.chat').classList.remove("d-none"); + this.root.el.querySelector('.mail').classList.add("d-none"); + this.root.el.querySelector('.channel').classList.add("d-none"); + this.state.sidebarChannel = 'chat' + }, + _onClickChannel(ev) {// Click function of channel button + this.root.el.querySelector('.channel').classList.remove("d-none"); + this.root.el.querySelector('.mail').classList.add("d-none"); + this.root.el.querySelector('.chat').classList.add("d-none"); + this.state.sidebarChat = 'channel' + }, +}); + +DiscussSidebar.components = { + ...DiscussSidebar.components, + DiscussSidebarMailboxes,DiscussSidebarCategories,DiscussSidebarStartMeeting,VoiceRecorder,ChannelSelector +}; diff --git a/whatsapp_chat_layout/static/src/xml/composer.xml b/whatsapp_chat_layout/static/src/xml/composer.xml new file mode 100644 index 000000000..44287f997 --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/composer.xml @@ -0,0 +1,75 @@ + + + + + +
+
+
+
+ + + + + + +
+
+
+