diff --git a/whatsapp_chat_layout/README.rst b/whatsapp_chat_layout/README.rst new file mode 100644 index 000000000..47a68487b --- /dev/null +++ b/whatsapp_chat_layout/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 + +Whatsapp Chat Layout in Odoo Discuss +==================================== +Redesigned the discuss module into whatsapp chat layout + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, Version 3 `(AGPL v3). +`__ + +Credits +------- +* Developer: (V15) Yadhukrishnan, +* 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/whatsapp_chat_layout/__init__.py b/whatsapp_chat_layout/__init__.py new file mode 100644 index 000000000..e24bb3e67 --- /dev/null +++ b/whatsapp_chat_layout/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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/whatsapp_chat_layout/__manifest__.py b/whatsapp_chat_layout/__manifest__.py new file mode 100644 index 000000000..be6e91314 --- /dev/null +++ b/whatsapp_chat_layout/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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': 'Whatsapp Chat Layout in Odoo Discuss', + 'version': '15.0.1.0.0', + 'category': 'Discuss', + 'summary': 'Redesigned the discuss module into whatsapp chat layout', + 'description': """User customize the layout of odoo discuss module like + whatsapp""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['mail'], + 'data': ['views/res_config_settings_views.xml'], + 'assets': { + 'web.assets_backend': [ + 'whatsapp_chat_layout/static/src/css/whatsapp_chat_layout.css', + 'whatsapp_chat_layout/static/src/js/discuss_sidebar.js', + 'whatsapp_chat_layout/static/src/js/discuss_container.js', + ], + 'web.assets_qweb': [ + 'whatsapp_chat_layout/static/src/xml/discuss_sidebar.xml', + 'whatsapp_chat_layout/static/src/xml/discuss_content.xml', + 'whatsapp_chat_layout/static/src/xml/discuss_sidebar_category.xml', + 'whatsapp_chat_layout/static/src/xml/composer.xml', + ] + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + '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..7e30e0380 --- /dev/null +++ b/whatsapp_chat_layout/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 21.10.2023 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for Whatsapp Chat Layout in Odoo Discuss diff --git a/whatsapp_chat_layout/models/__init__.py b/whatsapp_chat_layout/models/__init__.py new file mode 100644 index 000000000..01b22eb76 --- /dev/null +++ b/whatsapp_chat_layout/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 res_company +from . import res_config_settings +from . import res_users diff --git a/whatsapp_chat_layout/models/res_company.py b/whatsapp_chat_layout/models/res_company.py new file mode 100644 index 000000000..25d30037a --- /dev/null +++ b/whatsapp_chat_layout/models/res_company.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 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..a6a6ba2fa --- /dev/null +++ b/whatsapp_chat_layout/models/res_config_settings.py @@ -0,0 +1,49 @@ +# -*- 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""" + return {'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} diff --git a/whatsapp_chat_layout/models/res_users.py b/whatsapp_chat_layout/models/res_users.py new file mode 100644 index 000000000..ab6cbbaf3 --- /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: Yadhukrishnan K (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, models + + +class ResUsers(models.Model): + """Inherit the model res_users to add a function for getting user profile + image""" + _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/logo.png b/whatsapp_chat_layout/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/icons/logo.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/employee_image.png b/whatsapp_chat_layout/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/employee_image.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/m1.png b/whatsapp_chat_layout/static/description/assets/modules/m1.png new file mode 100644 index 000000000..6d4cb94bb Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/m1.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/m2.png b/whatsapp_chat_layout/static/description/assets/modules/m2.png new file mode 100644 index 000000000..1272619b1 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/m2.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/m3.jpg b/whatsapp_chat_layout/static/description/assets/modules/m3.jpg new file mode 100644 index 000000000..f95d9196e Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/m3.jpg differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/m4.png b/whatsapp_chat_layout/static/description/assets/modules/m4.png new file mode 100644 index 000000000..cdcba33eb Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/m4.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/quotation_image.png b/whatsapp_chat_layout/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/quotation_image.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..e87c7d641 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..9ab3a06d9 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..fc79286cd 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/2.png b/whatsapp_chat_layout/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..093ade16b 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..252bccc40 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..48823d7e8 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..a8b6e6c07 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/7.png b/whatsapp_chat_layout/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..36d677744 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..e5783ac46 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..4603bc106 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..28b8173da 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..6402182ba 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..b6802bfb9 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..9d60a7609 --- /dev/null +++ b/whatsapp_chat_layout/static/description/index.html @@ -0,0 +1,663 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Whatsapp Chat Layout in Odoo Discuss

+

+ Detailed Whatsapp Chat Layout in Odoo Discuss

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

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

+ + +
+
+

+ Change background color and layout color in configuration + settings. +

+ + + + +
+ +
+

+ Change background image in configuration settings. +

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

Suggested 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/whatsapp_chat_layout/static/src/css/whatsapp_chat_layout.css b/whatsapp_chat_layout/static/src/css/whatsapp_chat_layout.css new file mode 100644 index 000000000..6ae13f92a --- /dev/null +++ b/whatsapp_chat_layout/static/src/css/whatsapp_chat_layout.css @@ -0,0 +1,113 @@ +:root{ + --background-color: #ffffff; + --layout-color: #3a8180; +} +.o_MobileMessagingNavbar_tab{ + color: var(--layout-color); + background-color:var(--background-color) +} +.o_DiscussMobileMailboxSelection_button{ + color: var(--layout-color); + background-color:var(--background-color); + border-color:var(--background-color); +} +.o_Discuss.o-mobile { + color: var(--layout-color); + background-color: var(--background-color); +} +.o_DiscussMobileMailboxSelection_button.active.o-active.btn.btn-secondary { + background-color:var(--background-color); + border-color:var(--background-color); +} +.o_ThreadPreview { + background-color:var(--background-color) +} +.o_ThreadPreview_core { + color: var(--layout-color) +} +.o_Discuss_mobileNewChatButton{ + color: var(--layout-color); + background-color: var(--background-color); + border-color: var(--background-color); +} +.o_Discuss_mobileNewChatButton:hover { + color: var(--layout-color); + background-color: var(--background-color); + border-color: var(--background-color); +} +.o_Discuss_mobileNewChannelButton { + color: var(--layout-color); + background-color: var(--background-color); + border-color: var(--background-color); +} +.o_Discuss_mobileNewChannelButton:hover { + color: var(--layout-color); + background-color: var(--background-color); + border-color: var(--background-color); +} +.o_ThreadViewTopbar { + color: var(--layout-color); + background-color: var(--background-color); +} +.o_ComposerTextInput_textarea{ + height: 40px; + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.o_MessageList{ + background-color: var(--background-color) !important; + background-image: var(--background-image) !important; + background-repeat:no-repeat; + background-size:cover; +} +.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: 140px; +} +.o_ChatWindowHeader { + background-color:var(--layout-color) !important; + color: var(--background-color) !important; +} +.text-700 { + color: gray!important; +} +.o_DiscussSidebarCategory_header.d-flex.align-items-center.my-1 { + height: auto; + background-color: var(--layout-color) !important; + color: var(--background-color) !important; +} +.o_DiscussSidebarCategory_commandAdd { + color: var(--background-color) !important; +} +button.o_DiscussSidebarCategory_title{ + color: white!important; +} +.o_ThreadIcon_mailboxInbox { + font-size: 25px; + color: var(--layout-color) !important; +} +.o_ThreadIcon_mailboxStarred{ + font-size: 25px; + color: var(--layout-color) !important; +} +.o_ThreadIcon_mailboxHistory { + font-size: 25px; + color: var(--layout-color) !important; +} +.o_DiscussSidebarMailbox_name{ + margin-left: 22px; + font-size: 18px; +} +.o_DiscussSidebarMailbox_item.o_DiscussSidebarMailbox_name.me-2.text-truncate { + color: #fff; + font-size: 17px; +} 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..61102d42f --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_container.js @@ -0,0 +1,26 @@ +/** @odoo-module */ +/** + * This file is used to hide the set color to discuss model. + */ +import { Discuss } from '@mail/components/discuss/discuss'; +import { patch } from "@web/core/utils/patch"; +var rpc = require('web.rpc'); +patch(Discuss.prototype, 'discuss// model: "mail",ord-patch', { + setup() { + 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 + }); + }, +}); 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..e9f87b9e2 --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_sidebar.js @@ -0,0 +1,39 @@ +/** @odoo-module **/ +import { patch } from "@web/core/utils/patch"; +import { DiscussSidebar } from "@mail/components/discuss_sidebar/discuss_sidebar"; +const { onMounted } = owl.hooks; +var rpc = require('web.rpc'); +patch(DiscussSidebar.prototype, 'discuss_sidebar// model: "res.users",ord-patch', { + setup() { + this._super.apply(); + onMounted(() => { + this.sidebar() + }) + }, + async sidebar() { + var self = this + await 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.el.querySelector('#img').appendChild(image); + }); + }, + _onClickMail(ev) { // Click function of mail button + this.el.querySelector('.mail').classList.remove("d-none"); + this.el.querySelector('.channel').classList.add("d-none"); + this.el.querySelector('.chat').classList.add("d-none"); + }, + _onClickChat(ev) { // Click function of chat button + this.el.querySelector('.chat').classList.remove("d-none"); + this.el.querySelector('.mail').classList.add("d-none"); + this.el.querySelector('.channel').classList.add("d-none"); + }, + _onClickChannel(ev) { // Click function of channel button + this.el.querySelector('.channel').classList.remove("d-none"); + this.el.querySelector('.mail').classList.add("d-none"); + this.el.querySelector('.chat').classList.add("d-none"); + } +}) 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..4ac0b25aa --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/composer.xml @@ -0,0 +1,74 @@ + + + + + +
+
+ + + + + + + +
+ +
+
+ +
+ + +
+
+
+
+ + + +
+
+ + + + + +
+ + + + + + +
+
+
+ diff --git a/whatsapp_chat_layout/static/src/xml/discuss_content.xml b/whatsapp_chat_layout/static/src/xml/discuss_content.xml new file mode 100644 index 000000000..c2e96da24 --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/discuss_content.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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..1475f6659 --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/discuss_sidebar.xml @@ -0,0 +1,34 @@ + + + + + +
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+ + + +
+ +
+
+ +
+
+ + + 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..654804edb --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/discuss_sidebar_category.xml @@ -0,0 +1,28 @@ + + + + + +
+ + + + +
+
+ + + + + + +
+ +
+ +
+
+
+ + + diff --git a/whatsapp_chat_layout/views/res_config_settings_views.xml b/whatsapp_chat_layout/views/res_config_settings_views.xml new file mode 100644 index 000000000..c8452bd1a --- /dev/null +++ b/whatsapp_chat_layout/views/res_config_settings_views.xml @@ -0,0 +1,37 @@ + + + + + res.config.settings.view.form.inherit.whatsapp.chat.layout + res.config.settings + + + + +
+
+
+
+
+
+
+
+
+
+
+