diff --git a/whatsapp_chat_layout/README.rst b/whatsapp_chat_layout/README.rst new file mode 100755 index 000000000..e39cd1563 --- /dev/null +++ b/whatsapp_chat_layout/README.rst @@ -0,0 +1,50 @@ +.. image:: https://img.shields.io/badge/licence-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 + +Installation +============ + - www.odoo.com/documentation/14.0/setup/install.html + - Install our custom addon + +License +------- +Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: V(14) Yadhu Krishnan, 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 100755 index 000000000..4892997d9 --- /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: Yadhu krishnan (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 100755 index 000000000..9994914c4 --- /dev/null +++ b/whatsapp_chat_layout/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Yadhu krishnan (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': '14.0.1.0.0', + 'category': 'Discuss', + 'summary': "Redesigned the discuss module into whatsapp chat layout", + 'description': """User customize the layout of odoo discuss module into + whatsapp or their own style""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['mail', 'base_setup'], + 'data': [ + 'views/res_config_settings_views.xml', + 'views/assets.xml' + ], + 'qweb': [ + 'static/src/xml/discuss_sidebar_advanced_templates.xml', + 'static/src/xml/composer_advanced_templates.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 100755 index 000000000..b72557f4e --- /dev/null +++ b/whatsapp_chat_layout/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.07.2023 +#### Version 14.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 100755 index 000000000..6c624c21e --- /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: Yadhu krishnan (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 100755 index 000000000..14045280f --- /dev/null +++ b/whatsapp_chat_layout/models/res_company.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Yadhu krishnan (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 of the whatsapp + background""" + _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 100755 index 000000000..a4ee35086 --- /dev/null +++ b/whatsapp_chat_layout/models/res_config_settings.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Yadhu krishnan (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """Inherit the model res_config_settings to add fields for layout, + background color and background image""" + _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 100755 index 000000000..a00149a34 --- /dev/null +++ b/whatsapp_chat_layout/models/res_users.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Yadhu krishnan (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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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/l1.png b/whatsapp_chat_layout/static/description/assets/modules/l1.png new file mode 100755 index 000000000..84fe94e80 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/l1.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/l2.png b/whatsapp_chat_layout/static/description/assets/modules/l2.png new file mode 100755 index 000000000..74ce220e6 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/l2.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/l3.png b/whatsapp_chat_layout/static/description/assets/modules/l3.png new file mode 100755 index 000000000..c6d92c16d Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/l3.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/l4.png b/whatsapp_chat_layout/static/description/assets/modules/l4.png new file mode 100755 index 000000000..c5932894b Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/l4.png differ diff --git a/whatsapp_chat_layout/static/description/assets/modules/l5.png b/whatsapp_chat_layout/static/description/assets/modules/l5.png new file mode 100755 index 000000000..e0964f1e3 Binary files /dev/null and b/whatsapp_chat_layout/static/description/assets/modules/l5.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 100755 index 000000000..ba4f511a0 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 100755 index 000000000..12952c580 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 100755 index 000000000..683f3ac1b 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 100755 index 000000000..dff0cc347 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 100755 index 000000000..e98ca45b8 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 100755 index 000000000..5345bbc28 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/7.png b/whatsapp_chat_layout/static/description/assets/screenshots/7.png new file mode 100755 index 000000000..a9c0e0c4e 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 100755 index 000000000..954f3c145 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 100755 index 000000000..0f0143dea 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 100755 index 000000000..95a0d02d0 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..9aa2bd4ea 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 100755 index 000000000..e1524a8da 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 100755 index 000000000..d4028b75e --- /dev/null +++ b/whatsapp_chat_layout/static/description/index.html @@ -0,0 +1,644 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Whatsapp Chat Layout In Odoo Discuss

+

Redesigned The Discuss Module Into Whatsapp Chat Layout

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

+ 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, Enterprise and Odoo.sh. +
+
+
+ + + +
+
+ +
+

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

+ + +
+
+

+ Change Background Color and Layout Color in General + Settings. +

+ + + + +
+ +
+

+ Change Background Image in General 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

+
+
+
+
+
+
+
+ +
+
+
+ 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 100755 index 000000000..3d2b7be8e --- /dev/null +++ b/whatsapp_chat_layout/static/src/css/whatsapp_chat_layout.css @@ -0,0 +1,61 @@ +:root{ + --background-color: #ffffff; + --layout-color: #3a8180; +} +.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; + color: #fff; + margin-left: 15px; + padding-top: 18px; +} +.header { + margin-left: 140px; +} + +.text-700 { + color: gray!important; +} +.o_DiscussSidebar_groupHeader { + height: 40px; + background-color: var(--layout-color) !important; + font-size:15px; +} +div.o_DiscussSidebar_groupTitle{ + 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; +} +.o_DiscussSidebar_groupHeaderItemAdd { + color: #fff !important; +} 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 100755 index 000000000..0dc2a372f --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_container.js @@ -0,0 +1,33 @@ +odoo.define('whatsapp_chat_layout.discuss_container', function(require) { + 'use strict'; + var rpc = require('web.rpc'); + const components = { + Discuss: require('mail/static/src/components/discuss/discuss.js'), + }; + const { + patch + } = require('web.utils'); + /** + Patching the components.Discuss for changing the default view + */ + patch(components.Discuss, 'discuss// model: "mail",ord-patch', { + setup() { + //Call rpc to get color value. + rpc.query({ + 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 100755 index 000000000..922beb490 --- /dev/null +++ b/whatsapp_chat_layout/static/src/js/discuss_sidebar.js @@ -0,0 +1,50 @@ +odoo.define('whatsapp_chat_layout.discuss_sidebar', function(require) { + 'use strict'; + const { onMounted } = owl.hooks; + var rpc = require('web.rpc'); + const components = { DiscussSidebar: require('mail/static/src/components/discuss_sidebar/discuss_sidebar.js')}; + const { patch } = require('web.utils'); + /** + Patching the components. DiscussSidebar for changing the default view + */ + patch(components.DiscussSidebar, 'im_livechat/static/src/components/discuss_sidebar/discuss_sidebar.js', { + setup() { + this._super.apply(); + onMounted(() => { + this.sidebar() + }) + }, + // Function for getting the current user image + async sidebar() { + var self = this + //Call rpc to get current user image. + await rpc.query({ + model: "res.users", + method: "get_user_image", + }).then(function(result) { + let image = document.createElement('div') + image.innerHTML = '' + self.el.querySelector('#img').appendChild(image); + }); + }, + // Click function of mail button + _onClickMail(ev) { + console.log(this) + this.el.querySelector('.mail').classList.remove("d-none"); + this.el.querySelector('.channel').classList.add("d-none"); + this.el.querySelector('.chat').classList.add("d-none"); + }, + // Click function of chat button + _onClickChat(ev) { + this.el.querySelector('.chat').classList.remove("d-none"); + this.el.querySelector('.mail').classList.add("d-none"); + this.el.querySelector('.channel').classList.add("d-none"); + }, + // Click function of channel button + _onClickChannel(ev) { + 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_advanced_templates.xml b/whatsapp_chat_layout/static/src/xml/composer_advanced_templates.xml new file mode 100755 index 000000000..7fa940733 --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/composer_advanced_templates.xml @@ -0,0 +1,143 @@ + + + + + +
+ + + + + + +
+ + + on: + + + + + + + + To: + Followers of + + + " + " + + + this document + + + + + +
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + + + + + + +
+ +
+
+ +
+ + +
+
+
+
+ + + +
+
+ +
+ + + + + + + + + +
+
+ +
+ +
+ + +
+ + + + + + +
+
+
+ diff --git a/whatsapp_chat_layout/static/src/xml/discuss_sidebar_advanced_templates.xml b/whatsapp_chat_layout/static/src/xml/discuss_sidebar_advanced_templates.xml new file mode 100755 index 000000000..4b742e625 --- /dev/null +++ b/whatsapp_chat_layout/static/src/xml/discuss_sidebar_advanced_templates.xml @@ -0,0 +1,65 @@ + + + + + +
+
+
+
+
+
+
+
+
+
+ + + +
+
+ + + +
+
+
+ Channels +
+
+
+
+
+ +
+ +
+
+ + + +
+
+
+
+
+ Direct Messages +
+
+
+
+
+ +
+ +
+
+ + + +
+
+
+ + + diff --git a/whatsapp_chat_layout/views/assets.xml b/whatsapp_chat_layout/views/assets.xml new file mode 100755 index 000000000..9a2cc51c9 --- /dev/null +++ b/whatsapp_chat_layout/views/assets.xml @@ -0,0 +1,15 @@ + + + +