diff --git a/whatsapp_chat_layout/README.rst b/whatsapp_chat_layout/README.rst new file mode 100644 index 000000000..cf8e1815b --- /dev/null +++ b/whatsapp_chat_layout/README.rst @@ -0,0 +1,44 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://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 16. + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(V16) Afra M P @cybrosys + +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..3d31defec --- /dev/null +++ b/whatsapp_chat_layout/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Afra MP (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 diff --git a/whatsapp_chat_layout/__manifest__.py b/whatsapp_chat_layout/__manifest__.py new file mode 100644 index 000000000..86f3bbed5 --- /dev/null +++ b/whatsapp_chat_layout/__manifest__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Afra MP (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': '16.0.1.0.0', + 'summary': 'Redesigned the discuss module into whatsapp chat layout', + 'description': 'Odoo discuss with whatsapp view', + 'category': 'Discuss', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'license': 'LGPL-3', + 'depends': ['base', 'mail', 'base_setup'], + '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/discuss_sidebar_mailbox.xml', + 'whatsapp_chat_layout/static/src/xml/composer.xml' + ], + }, + 'images': [ + 'static/description/icon.png', + 'static/description/banner.png' + ], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/whatsapp_chat_layout/doc/RELEASE_NOTES.md b/whatsapp_chat_layout/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..d03816493 --- /dev/null +++ b/whatsapp_chat_layout/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 22.03.2023 +#### Version 16.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..1cc03adea --- /dev/null +++ b/whatsapp_chat_layout/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Afra MP (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_users +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..9a753933e --- /dev/null +++ b/whatsapp_chat_layout/models/res_company.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Afra MP (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..36e7a79dd --- /dev/null +++ b/whatsapp_chat_layout/models/res_config_settings.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Afra MP (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') + + def get_color(self): + """Function to return values into js""" + colors = {'background_color': self.env[ + 'ir.config_parameter'].sudo().get_param( + 'base_setup.background_color'), 'layout_color': self.env[ + 'ir.config_parameter'].sudo().get_param( + 'base_setup.layout_color'), + 'background_image': self.env.user.company_id.background_image} + return colors diff --git a/whatsapp_chat_layout/models/res_users.py b/whatsapp_chat_layout/models/res_users.py new file mode 100644 index 000000000..33e3e68d1 --- /dev/null +++ b/whatsapp_chat_layout/models/res_users.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Afra MP (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/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/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/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/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/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/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/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.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.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/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/modules/1.png b/whatsapp_chat_layout/static/description/assets/modules/1.png new file mode 100644 index 000000000..3415917c2 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.png b/whatsapp_chat_layout/static/description/assets/modules/2.png new file mode 100644 index 000000000..31ed46762 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/3.png b/whatsapp_chat_layout/static/description/assets/modules/3.png new file mode 100644 index 000000000..25ed3e0b6 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/3.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/4.png b/whatsapp_chat_layout/static/description/assets/modules/4.png new file mode 100644 index 000000000..359d3e4d6 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/4.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..3add135c3 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/6.png b/whatsapp_chat_layout/static/description/assets/modules/6.png new file mode 100644 index 000000000..be454ea44 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/6.png 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..7c4d97b9e 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..09de49cb9 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/11.png b/whatsapp_chat_layout/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..a2fb144cf Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/11.png differ diff --git a/whatsapp_chat_layout/static/description/assets/screenshots/12.png b/whatsapp_chat_layout/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..4f7df49ea Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/screenshots/12.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..e107aa78d 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..55367a3a6 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..aba2bc1f7 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..3a9325519 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..5cbb3a614 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..adc70b51e 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..187a67758 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..720114f27 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..95d7403b8 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.png b/whatsapp_chat_layout/static/description/banner.png new file mode 100644 index 000000000..33a2b2e25 Binary files /dev/null and b/whatsapp_chat_layout/static/description/banner.png 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..42dbffe59 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..a4e5578b0 --- /dev/null +++ b/whatsapp_chat_layout/static/description/index.html @@ -0,0 +1,573 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Whatsapp Chat Layout in Odoo Discuss

+

Detailed Whatsapp Chat Layout in Odoo Discuss View.

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ Whatsapp Chat Layout in Odoo Discuss module Redesigned the discuss module into whatsapp chat layout.User can change the + background color and layout color of the discuss module. And also set background image. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Dynamically change background and Layout color. +
+
+ + Dynamically change background image. +
+
+ + Current user chat view in left side. +
+
+ + Easy to Use and Manage. +
+
+ + + Available in Odoo 16.0 Community and Enterprise. +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+ +
+
+ +
+

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. +

+ + + + +
+ +
+

+ Change background image in configuration settings. +

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

Related Modules

+

Explore our related modules

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

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/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..73cdb7da6 --- /dev/null +++ b/whatsapp_chat_layout/static/src/css/discuss.css @@ -0,0 +1,50 @@ +.o_DiscussSidebar.o_Discuss_sidebar.flex-shrink-0.h-100.pt-3.border-end.bg-light { + 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_DiscussSidebarCategory_header.d-flex.align-items-center.my-1 { + height: 74px; + background-color: var(--layout-color) !important; +} +button.o_DiscussSidebarCategory_title{ + color: white!important; +} + +i.o_DiscussSidebarCategory_command.o_DiscussSidebarCategory_commandAdd.fa.fa-plus.btn.p-0.text-start.text-700.opacity-100-hover.opacity-75.ms-1 { + color: white!important; +} +i.o_DiscussSidebarCategory_command.o_DiscussSidebarCategory_commandView.fa.fa-cog.btn.p-0.text-start.text-700.opacity-100-hover.opacity-75 { + color: white!important; +} + +.o_DiscussSidebar.o_Discuss_sidebar.flex-shrink-0 { + background-color: #FFFFFF!important; +} +.o_ThreadIcon.d-flex.justify-content-center.flex-shrink-0.o_DiscussSidebarMailbox_item.ms-4.me-2 { + border-radius: 50%; + font-size: 34px; + padding-right: 15px; + color: var(--layout-color) !important; +} +.o_DiscussSidebarMailbox_item.o_DiscussSidebarMailbox_name.me-2.text-truncate { + 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..99a7bda26 --- /dev/null +++ b/whatsapp_chat_layout/static/src/css/thread.css @@ -0,0 +1,49 @@ +.o_ThreadViewTopbar.d-flex.flex-shrink-0.w-100.px-3.bg-100.border-bottom { + height: 66px; + background-color: #eeedee!important; +} + +.o_MessageList.bg-view.d-flex.flex-column.overflow-auto.o_ThreadView_messageList.flex-grow-1.o-empty.align-items-center.justify-content-center { + background-color: var(--background-color) !important; + background-image: var(--background-image) !important; + background-repeat:no-repeat; + background-size:cover; +} +.o_MessageList.bg-view.d-flex.flex-column.overflow-auto.o_ThreadView_messageList.flex-grow-1.pb-4{ + background-color: var(--background-color) !important; + background-image: var(--background-image) !important; + background-repeat:no-repeat; + background-size:cover; +} +.o_Composer.o-has-current-partner-avatar.pe-3.ps-1.o-has-footer{ + background-color: #eeedee!important; + height: 85px; + padding-top: 15px!important; +} + +button.o_Composer_toolButton{ + font-size: 25px; + background-color: #eeedee; +} +.o_Composer_toolButtons.d-flex.py-1.border-top.bg-view.o-composer-has-current-partner-avatar.o-composer-is-compact.border-bottom { + height: 50px; + background-color: #eeedee!important; +} + +button.o_Composer_actionButton.o_Composer_button.o_Composer_buttonSend.fa.fa-paper-plane.o-last.o-composer-is-compact.border-start-0.o-has-current-partner-avatar.rounded-0.rounded-end-3 { + background-color: var(--layout-color) !important; + color: white; +} +.o_Message.position-relative.py-1.o-discussion.o-currentAuthor.mt-1.px-3.o_MessageList_item.o_MessageList_message { + display: flex; + flex-direction: row-reverse; + justify-content: end; +} +.o_Message.position-relative.py-1.o-discussion.o-squashed.pt-1.o-currentAuthor.px-3.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..e4920d8e1 --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_container.js @@ -0,0 +1,30 @@ +/** @odoo-module */ +/** + * This file is used to hide the set color to discuss model. + */ +import { DiscussContainer} from '@mail/components/discuss_container/discuss_container'; +import { patch} from "@web/core/utils/patch"; +var rpc = require('web.rpc'); +const {onWillStart} = owl; +patch(DiscussContainer.prototype, 'discuss_container// model: "mail",ord-patch', { + setup() { + this._super(); + onWillStart(async () => { + await rpc.query({ //Call rpc to get color value. + model: "res.config.settings", + method: "get_color", + args: [0], + }).then(function(result) { + if (result.background_color !== false){ + document.documentElement.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){ + document.documentElement.style.setProperty("--background-image",'url(data:image/png;base64,'+result.background_image+')'); + }// set discuss background image + }); + }); + } +}); \ No newline at end of file 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..d4e8a640e --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_sidebar.js @@ -0,0 +1,38 @@ +/** @odoo-module **/ +import { patch } from "@web/core/utils/patch"; +import { DiscussSidebar } from "@mail/components/discuss_sidebar/discuss_sidebar"; +const { onMounted, useRef } = owl; +var rpc = require('web.rpc'); +patch(DiscussSidebar.prototype, 'discuss_sidebar// model: "res.users",ord-patch', { +setup() { + this._super.apply(); + this.root = useRef("root") + onMounted(this.sidebar) + }, + sidebar(){ + var self = this + rpc.query({//Call rpc to get current user image. + model: "res.users", + method: "get_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"); + }, + _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"); + }, +}); \ No newline at end of file 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..4bf73d0dc --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/composer.xml @@ -0,0 +1,106 @@ + + + + + +
+
+
+ +
+ +
+
+
+
+ +
+ + + + +
+
+
+
+ + +
+ + + + + + +
+
+
+
diff --git a/whatsapp_chat_layout/static/src/xml/discuss_sidebar.xml b/whatsapp_chat_layout/static/src/xml/discuss_sidebar.xml new file mode 100644 index 000000000..e601c380a --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/discuss_sidebar.xml @@ -0,0 +1,51 @@ + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+ + + +
+
+ +
+
+ + +
+
+ + + diff --git a/whatsapp_chat_layout/static/src/xml/discuss_sidebar_category.xml b/whatsapp_chat_layout/static/src/xml/discuss_sidebar_category.xml new file mode 100644 index 000000000..158bbb5e7 --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/discuss_sidebar_category.xml @@ -0,0 +1,38 @@ + + + + + +
+ +
+
+ + + + + + +
+ +
+ +
+
+
+ + + diff --git a/whatsapp_chat_layout/static/src/xml/discuss_sidebar_mailbox.xml b/whatsapp_chat_layout/static/src/xml/discuss_sidebar_mailbox.xml new file mode 100644 index 000000000..17753a570 --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/discuss_sidebar_mailbox.xml @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/whatsapp_chat_layout/views/res_config_settings.xml b/whatsapp_chat_layout/views/res_config_settings.xml new file mode 100644 index 000000000..365aecb15 --- /dev/null +++ b/whatsapp_chat_layout/views/res_config_settings.xml @@ -0,0 +1,37 @@ + + + + + res.config.settings.view.form.inherit.whatsapp.chat.layout + res.config.settings + + + + +
+
+
+
+
+
+
+
+
+
+
+