diff --git a/whatsapp_mail_messaging/README.rst b/whatsapp_mail_messaging/README.rst new file mode 100644 index 000000000..39dd8e651 --- /dev/null +++ b/whatsapp_mail_messaging/README.rst @@ -0,0 +1,51 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Odoo Whatsapp Connector +======================= +Odoo Whatsapp connector for Sales, Invoice, and a floating button on the Website, along with icons for Whatsapp and email in the systray bar. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Lesser General Public License, Version 3 (LGPL v3) +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developers: (V13) Nishad@cybrosys, + (V14) Sayooj A O, + (V15) Midilaj V K, + (V16) Pranav T V, + (V17) Aysha Shalin + 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_mail_messaging/__init__.py b/whatsapp_mail_messaging/__init__.py new file mode 100644 index 000000000..25805c9f5 --- /dev/null +++ b/whatsapp_mail_messaging/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 controllers +from . import model +from . import wizard diff --git a/whatsapp_mail_messaging/__manifest__.py b/whatsapp_mail_messaging/__manifest__.py new file mode 100644 index 000000000..c72401bd8 --- /dev/null +++ b/whatsapp_mail_messaging/__manifest__.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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': 'Odoo Whatsapp Connector', + 'version': '17.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """Odoo Whatsapp connector for Sales, Invoice, and a floating + button on the Website, along with icons for Whatsapp and email in the + systray bar.""", + 'description': """Added options for sending Whatsapp messages and emails in + the systray bar, sale order, invoices, website portal view and ability to + share access URLs for documents through the share option available in each + record using WhatsApp Web.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale', 'account', 'website', 'sale_management'], + 'data': [ + 'security/ir.model.access.csv', + 'views/website_templates.xml', + 'views/sale_order_views.xml', + 'views/account_move_views.xml', + 'views/website_views.xml', + 'views/selection_message_views.xml', + 'wizard/whatsapp_send_message_views.xml', + 'wizard/portal_share_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + "whatsapp_mail_messaging/static/src/css/icons.css", + "whatsapp_mail_messaging/static/src/js/whatsapp_icon.js", + "whatsapp_mail_messaging/static/src/js/mail_icon.js", + 'whatsapp_mail_messaging/static/src/xml/whatsapp_icon_template.xml', + 'whatsapp_mail_messaging/static/src/xml/mail_icon_template.xml', + ], + 'web.assets_frontend': [ + "whatsapp_mail_messaging/static/src/css/whatsapp_icon_website.css", + "whatsapp_mail_messaging/static/src/js/whatsapp_web_icon.js", + "whatsapp_mail_messaging/static/src/js/whatsapp_modal.js", + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/whatsapp_mail_messaging/controllers/__init__.py b/whatsapp_mail_messaging/controllers/__init__.py new file mode 100644 index 000000000..757a0f097 --- /dev/null +++ b/whatsapp_mail_messaging/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import whatsapp_mail_messaging diff --git a/whatsapp_mail_messaging/controllers/whatsapp_mail_messaging.py b/whatsapp_mail_messaging/controllers/whatsapp_mail_messaging.py new file mode 100644 index 000000000..9d96625d9 --- /dev/null +++ b/whatsapp_mail_messaging/controllers/whatsapp_mail_messaging.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import http +from odoo.http import request + + +class SendMessage(http.Controller): + """ Controller for whatsapp message templates """ + @http.route('/whatsapp_message', type='json', auth='public') + def whatsapp_message(self, **kwargs): + """ Whatsapp message templates """ + messages = request.env['selection.message'].sudo().search_read( + fields=['name', 'message']) + return {'messages': messages} + + @http.route('/mobile_number', type='json', auth='public') + def mobile_number(self, **kwargs): + """ Mobile number of website """ + mobile_number = request.env['website'].sudo().search_read( + fields=['mobile_number'] + ) + return {'mobile': mobile_number} diff --git a/whatsapp_mail_messaging/doc/RELEASE_NOTES.md b/whatsapp_mail_messaging/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..d64a1e401 --- /dev/null +++ b/whatsapp_mail_messaging/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 01.03.2024 +#### Version 17.0.1.0.0 +##### ADD +- Initial commit for Odoo Whatsapp Connector diff --git a/whatsapp_mail_messaging/model/__init__.py b/whatsapp_mail_messaging/model/__init__.py new file mode 100644 index 000000000..aec83d75a --- /dev/null +++ b/whatsapp_mail_messaging/model/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 account_move +from . import sale_order +from . import selection_message +from . import website diff --git a/whatsapp_mail_messaging/model/account_move.py b/whatsapp_mail_messaging/model/account_move.py new file mode 100644 index 000000000..994184d0f --- /dev/null +++ b/whatsapp_mail_messaging/model/account_move.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 itertools import groupby +from odoo import models, _ +from odoo.exceptions import UserError + + +class AccountMove(models.Model): + """ + This class extends the 'account.move' model to add custom functionalities + related to WhatsApp messaging. + """ + _inherit = 'account.move' + + def action_send_whatsapp(self): + """ Action for sending whatsapp message.""" + compose_form_id = self.env.ref( + 'whatsapp_mail_messaging.whatsapp_send_message_view_form').id + ctx = dict(self.env.context) + message = ( + "Hi" + " " + self.partner_id.name + ',' + '\n' + + "Here is your invoice" + ' ' + self.name + ' ' + "amounting" + + ' ' + str(self.amount_total) + self.currency_id.symbol + ' ' + + "from " + self.company_id.name + + ". Please remit payment at your earliest convenience. " + '\n' + + "Please use the following communication for your payment" + + ' ' + self.name) + ctx.update({ + 'default_message': message, + 'default_partner_id': self.partner_id.id, + 'default_mobile': self.partner_id.mobile, + 'default_image_1920': self.partner_id.image_1920, + }) + return { + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'whatsapp.send.message', + 'views': [(compose_form_id, 'form')], + 'view_id': compose_form_id, + 'target': 'new', + 'context': ctx, + } + + def check_customers(self, partner_ids): + """ Check if the selected invoices belong to the same customer.""" + partners = groupby(partner_ids) + return next(partners, True) and not next(partners, False) + + def action_whatsapp_multi(self): + """ + Initiate WhatsApp messaging for multiple invoices and open a message + composition wizard. + """ + account_move_ids = self.env['account.move'].browse( + self.env.context.get('active_ids')) + partner_ids = [] + for account_move in account_move_ids: + partner_ids.append(account_move.partner_id.id) + partner_check = self.check_customers(partner_ids) + if partner_check: + account_move_numbers = account_move_ids.mapped('name') + account_move_numbers = "\n".join(account_move_numbers) + compose_form_id = self.env.ref( + 'whatsapp_mail_messaging.whatsapp_send_message_view_form').id + ctx = dict(self.env.context) + message = ("Hi" + " " + self.partner_id.name + ',' + '\n' + + "Your Orders are" + '\n' + account_move_numbers + ' ' + + "is ready for review.Do not hesitate to contact us if " + "you have any questions.") + ctx.update({ + 'default_message': message, + 'default_partner_id': account_move_ids[0].partner_id.id, + 'default_mobile': account_move_ids[0].partner_id.mobile, + 'default_image_1920': account_move_ids[0].partner_id.image_1920, + }) + return { + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'whatsapp.send.message', + 'views': [(compose_form_id, 'form')], + 'view_id': compose_form_id, + 'target': 'new', + 'context': ctx, + } + else: + raise UserError(_( + 'It appears that you have selected orders from multiple' + ' customers. Please select orders from a single customer.')) diff --git a/whatsapp_mail_messaging/model/sale_order.py b/whatsapp_mail_messaging/model/sale_order.py new file mode 100644 index 000000000..d338c9817 --- /dev/null +++ b/whatsapp_mail_messaging/model/sale_order.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 itertools import groupby +from odoo import models, _ +from odoo.exceptions import UserError + + +class SaleOrder(models.Model): + """ + This class extends the 'sale.order' model to add custom functionalities + related to WhatsApp messaging. + """ + _inherit = 'sale.order' + + def action_send_whatsapp(self): + """ Action for sending whatsapp message.""" + compose_form_id = self.env.ref( + 'whatsapp_mail_messaging.whatsapp_send_message_view_form').id + ctx = dict(self.env.context) + message = ("Hi" + " " + self.partner_id.name + ',' + '\n' + + "Your quotation" + ' ' + self.name + ' ' + "amounting" + ' ' + + str(self.amount_total) + self.currency_id.symbol + ' ' + + "is ready for review.Do not hesitate to contact us if you " + "have any questions.") + ctx.update({ + 'default_message': message, + 'default_partner_id': self.partner_id.id, + 'default_mobile': self.partner_id.mobile, + 'default_image_1920': self.partner_id.image_1920, + }) + return { + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'whatsapp.send.message', + 'views': [(compose_form_id, 'form')], + 'view_id': compose_form_id, + 'target': 'new', + 'context': ctx, + } + + def check_customers(self, partner_ids): + """ Check if the selected sale orders belong to the same customer.""" + partners = groupby(partner_ids) + return next(partners, True) and not next(partners, False) + + def action_whatsapp_multi(self): + """ + Initiate WhatsApp messaging for multiple sale orders and open a message + composition wizard. + """ + sale_order_ids = self.env['sale.order'].browse( + self.env.context.get('active_ids')) + partner_ids = [] + for sale in sale_order_ids: + partner_ids.append(sale.partner_id.id) + partner_check = self.check_customers(partner_ids) + if partner_check: + sale_numbers = sale_order_ids.mapped('name') + sale_numbers = "\n".join(sale_numbers) + compose_form_id = self.env.ref( + 'whatsapp_mail_messaging.whatsapp_send_message_view_form').id + ctx = dict(self.env.context) + message = ("Hi" + " " + self.partner_id.name + ',' + '\n' + + "Your Orders are" + '\n' + sale_numbers + ' ' + '\n' + + "is ready for review.Do not hesitate to contact us if " + "you have any questions.") + ctx.update({ + 'default_message': message, + 'default_partner_id': sale_order_ids[0].partner_id.id, + 'default_mobile': sale_order_ids[0].partner_id.mobile, + 'default_image_1920': sale_order_ids[0].partner_id.image_1920, + }) + return { + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'whatsapp.send.message', + 'views': [(compose_form_id, 'form')], + 'view_id': compose_form_id, + 'target': 'new', + 'context': ctx, + } + else: + raise UserError(_( + 'It appears that you have selected orders from multiple' + ' customers. Please select orders from a single customer.')) diff --git a/whatsapp_mail_messaging/model/selection_message.py b/whatsapp_mail_messaging/model/selection_message.py new file mode 100644 index 000000000..e89d64805 --- /dev/null +++ b/whatsapp_mail_messaging/model/selection_message.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 SelectionMessage(models.Model): + """ Message Templates """ + _name = 'selection.message' + _description = 'Selection Message' + + name = fields.Char(string="Name", + help="Name of message template") + message = fields.Text(string="Message", required=True, + help="The message to send") diff --git a/whatsapp_mail_messaging/model/website.py b/whatsapp_mail_messaging/model/website.py new file mode 100644 index 000000000..5d609eada --- /dev/null +++ b/whatsapp_mail_messaging/model/website.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 Website(models.Model): + """ Inheriting 'website' model to add mobile number.""" + _inherit = 'website' + + mobile_number = fields.Char(string='Mobile Number') diff --git a/whatsapp_mail_messaging/security/ir.model.access.csv b/whatsapp_mail_messaging/security/ir.model.access.csv new file mode 100644 index 000000000..59424865b --- /dev/null +++ b/whatsapp_mail_messaging/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_whatsapp_send_message_user,access.whatsapp.send.message.user,model_whatsapp_send_message,base.group_user,1,1,1,1 +access_selection_message_user,access.selection.message.user,model_selection_message,base.group_user,1,1,1,1 diff --git a/whatsapp_mail_messaging/static/description/assets/icons/capture (1).png b/whatsapp_mail_messaging/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/capture (1).png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/check.png b/whatsapp_mail_messaging/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/check.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/chevron.png b/whatsapp_mail_messaging/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/chevron.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/cogs.png b/whatsapp_mail_messaging/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/cogs.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/consultation.png b/whatsapp_mail_messaging/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/consultation.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/ecom-black.png b/whatsapp_mail_messaging/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/ecom-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/education-black.png b/whatsapp_mail_messaging/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/education-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/hotel-black.png b/whatsapp_mail_messaging/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/hotel-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/img.png b/whatsapp_mail_messaging/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/img.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/license.png b/whatsapp_mail_messaging/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/license.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/lifebuoy.png b/whatsapp_mail_messaging/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/lifebuoy.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/manufacturing-black.png b/whatsapp_mail_messaging/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/manufacturing-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/photo-capture.png b/whatsapp_mail_messaging/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/photo-capture.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/pos-black.png b/whatsapp_mail_messaging/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/pos-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/puzzle.png b/whatsapp_mail_messaging/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/puzzle.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/restaurant-black.png b/whatsapp_mail_messaging/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/restaurant-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/service-black.png b/whatsapp_mail_messaging/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/service-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/trading-black.png b/whatsapp_mail_messaging/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/trading-black.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/training.png b/whatsapp_mail_messaging/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/training.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/update.png b/whatsapp_mail_messaging/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/update.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/user.png b/whatsapp_mail_messaging/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/user.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/icons/wrench.png b/whatsapp_mail_messaging/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/wrench.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/misc/Cybrosys R.png b/whatsapp_mail_messaging/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/misc/Cybrosys R.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/misc/email.svg b/whatsapp_mail_messaging/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/whatsapp_mail_messaging/static/description/assets/misc/phone.svg b/whatsapp_mail_messaging/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/whatsapp_mail_messaging/static/description/assets/misc/star (1) 2.svg b/whatsapp_mail_messaging/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_mail_messaging/static/description/assets/misc/support (1) 1.svg b/whatsapp_mail_messaging/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_mail_messaging/static/description/assets/misc/support-email.svg b/whatsapp_mail_messaging/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/whatsapp_mail_messaging/static/description/assets/misc/tick-mark.svg b/whatsapp_mail_messaging/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/whatsapp_mail_messaging/static/description/assets/misc/whatsapp 1.svg b/whatsapp_mail_messaging/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_mail_messaging/static/description/assets/misc/whatsapp.svg b/whatsapp_mail_messaging/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/whatsapp_mail_messaging/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/whatsapp_mail_messaging/static/description/assets/modules/access_restriction_by_ip.png b/whatsapp_mail_messaging/static/description/assets/modules/access_restriction_by_ip.png new file mode 100644 index 000000000..5c6a8e953 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/access_restriction_by_ip.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/modules/custom_gantt_view.png b/whatsapp_mail_messaging/static/description/assets/modules/custom_gantt_view.png new file mode 100644 index 000000000..19d4e54c8 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/custom_gantt_view.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/modules/edit_save_button.png b/whatsapp_mail_messaging/static/description/assets/modules/edit_save_button.png new file mode 100644 index 000000000..c596ba59c Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/edit_save_button.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/modules/login_user_detail.png b/whatsapp_mail_messaging/static/description/assets/modules/login_user_detail.png new file mode 100644 index 000000000..2a0f98236 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/login_user_detail.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/modules/sale_purchase_automated.png b/whatsapp_mail_messaging/static/description/assets/modules/sale_purchase_automated.png new file mode 100644 index 000000000..fa0b5797d Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/sale_purchase_automated.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/modules/user_login_alert.png b/whatsapp_mail_messaging/static/description/assets/modules/user_login_alert.png new file mode 100644 index 000000000..e3cc3dd28 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/user_login_alert.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/1.png b/whatsapp_mail_messaging/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..23408eb04 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/1.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/10.png b/whatsapp_mail_messaging/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..d13cb9704 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/10.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/11.png b/whatsapp_mail_messaging/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..21c7672fa Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/11.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/12.png b/whatsapp_mail_messaging/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..cd1e596c5 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/12.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/13.png b/whatsapp_mail_messaging/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..3e8f57e99 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/13.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/14.png b/whatsapp_mail_messaging/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..0f250eee0 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/14.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/15.png b/whatsapp_mail_messaging/static/description/assets/screenshots/15.png new file mode 100644 index 000000000..6697ad722 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/15.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/16.png b/whatsapp_mail_messaging/static/description/assets/screenshots/16.png new file mode 100644 index 000000000..451bfa7f4 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/16.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/17.png b/whatsapp_mail_messaging/static/description/assets/screenshots/17.png new file mode 100644 index 000000000..6e9a02d17 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/17.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/18.png b/whatsapp_mail_messaging/static/description/assets/screenshots/18.png new file mode 100644 index 000000000..5914ee8df Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/18.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/19.png b/whatsapp_mail_messaging/static/description/assets/screenshots/19.png new file mode 100644 index 000000000..bc602def7 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/19.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/2.png b/whatsapp_mail_messaging/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..4a6adfd4f Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/2.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/20.png b/whatsapp_mail_messaging/static/description/assets/screenshots/20.png new file mode 100644 index 000000000..4f715deb2 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/20.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/21.png b/whatsapp_mail_messaging/static/description/assets/screenshots/21.png new file mode 100644 index 000000000..e6a485b37 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/21.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/22.png b/whatsapp_mail_messaging/static/description/assets/screenshots/22.png new file mode 100644 index 000000000..9b0058df6 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/22.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/23.png b/whatsapp_mail_messaging/static/description/assets/screenshots/23.png new file mode 100644 index 000000000..15760a1e6 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/23.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/24.png b/whatsapp_mail_messaging/static/description/assets/screenshots/24.png new file mode 100644 index 000000000..fcdb2bb67 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/24.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/25.png b/whatsapp_mail_messaging/static/description/assets/screenshots/25.png new file mode 100644 index 000000000..223d4051d Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/25.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/3.png b/whatsapp_mail_messaging/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..f11c0a9fe Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/3.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/4.png b/whatsapp_mail_messaging/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..7b1fe3ebf Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/4.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/5.png b/whatsapp_mail_messaging/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..0a696b2cf Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/5.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/6.png b/whatsapp_mail_messaging/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..3ca1c837b Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/6.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/7.png b/whatsapp_mail_messaging/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..d0bdd9732 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/7.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/8.png b/whatsapp_mail_messaging/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..69089fcca Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/8.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/9.png b/whatsapp_mail_messaging/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..26ea20ed6 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/9.png differ diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/hero.gif b/whatsapp_mail_messaging/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..70d0ab5c9 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/hero.gif differ diff --git a/whatsapp_mail_messaging/static/description/banner.png b/whatsapp_mail_messaging/static/description/banner.png new file mode 100644 index 000000000..d7ef56df4 Binary files /dev/null and b/whatsapp_mail_messaging/static/description/banner.png differ diff --git a/whatsapp_mail_messaging/static/description/icon.png b/whatsapp_mail_messaging/static/description/icon.png new file mode 100644 index 000000000..d34932e7d Binary files /dev/null and b/whatsapp_mail_messaging/static/description/icon.png differ diff --git a/whatsapp_mail_messaging/static/description/index.html b/whatsapp_mail_messaging/static/description/index.html new file mode 100644 index 000000000..9b63c0039 --- /dev/null +++ b/whatsapp_mail_messaging/static/description/index.html @@ -0,0 +1,879 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Odoo Whatsapp Connector

+

+ Send WhatsApp Messages and Mails from Odoo. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Send Whatsapp Messages and Mails.

+

Send Whatsapp Messages and Mails from Systray Bar,Sale Order, + Invoices and Website Portal View. +

+
+
+
+
+
+
+ +
+
+

Share the Access Urls of Documents.

+

Share the Access Urls of Documents Using Share + Option Available in Each Records through Whatsapp Web. +

+
+
+
+
+
+
+ +
+
+

Added Whatsapp to the Share Options.

+

Added Whatsapp to the Share Options for Sale Orders and Invoices. +

+
+
+
+
+
+
+ +
+
+

Whatsapp and Mail Icon in Systray Bar.

+

Icons for Whatsapp and Mail have been Added to the Systray Bar, + Allowing Users to Send Messages by Clicking on them. +

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

+ Icons for Whatsapp and Mail have been Added to the Systray Bar.

+
+
+
+
+
+
+ +
+
+

+ Create Mail from Systray Bar.

+

Clicking on the Mail Icon will Open a Mail Composing Screen + where We can Specify the Content, Customer, Subject, and Attachments. +

+
+
+
+
+
+
+ +
+
+

+ After Sending the Email, the Corresponding Recipients will Receive the Email.

+
+
+
+
+
+
+ +
+
+

+ Add Mobile Number.

+

We Need to Specify the Mobile Field in the Contact Form, Including + the Country Code, to Automatically Populate the Mobile Number in the WhatsApp Message Composing Wizard. +

+
+
+
+
+
+
+ +
+
+

+ Create Whatsapp Message from the Systray Bar.

+

After Clicking on the WhatsApp Icon in the SysTray, We will be + Redirected to a Message Composing Screen Like this. +

+
+
+
+
+
+
+ +
+
+

+ Option to Add Emojis.

+
+
+
+
+
+
+ +
+
+

+ After Clicking 'Send', We will be Redirected to WhatsApp Web Along with Our Message.

+
+
+
+
+
+
+ +
+
+

+ The Message Entered in Odoo will be Sent to the Corresponding WhatsApp Number in our Contacts.

+
+
+
+ +
+
+
+ +
+
+

+ Send Invoices via WhatsApp.

+
+
+
+
+
+
+ +
+
+

+ WhatsApp Wizard in Invoice.

+

Upon Clicking the 'Send by Whatsapp' Button, + A Popup will Appear with Auto-filled Details, Including the Recipient, Contact Number, + and Required Content. You can Edit these Details if Needed. +

+
+
+
+
+
+
+ +
+
+

+ The Message, Along with the Details from the Popup, will be Redirected to WhatsApp Web.

+
+
+
+
+
+
+ +
+
+

+ Send Sale Orders via Whatsapp.

+
+
+
+
+
+
+ +
+
+

+ Whatsapp Wizard in Sale Order.

+

Upon Clicking the 'Send by Whatsapp' Button, + A Popup will Appear with Auto-filled Details, Including the Recipient, Contact Number, + and Required Content. You can Edit these Details if Needed. +

+
+
+
+
+
+
+ +
+
+

+ The message will redirect to WhatsApp Web with the details from the popup.

+
+
+
+
+
+
+ +
+
+

+ In the Website Form, Provide the Necessary Phone Number with the Country Code.

+
+
+
+
+
+
+ +
+
+

+ A WhatsApp Icon will be Available on the Website.

+
+
+
+
+
+
+ +
+
+

+ Send Custom Message.

+
+
+
+
+
+
+ +
+
+

+ Choose a Message Template.

+
+
+
+
+
+
+ +
+
+

+ Clicking on 'Send Message' will Redirect to WhatsApp Web, + with the Recipient Set as the Number Specified on the Corresponding Website.

+
+
+
+
+
+
+ +
+
+

+ Share Documents Through Whatsapp.

+
+
+
+
+
+
+ +
+
+

+ Clicking on 'Share' will Reveal An Additional Option, 'Whatsapp' in the Popup Screen. + Here, We can Add the Customer and Additional Contents if Needed.

+
+
+
+
+
+
+ +
+
+

+ After Clicking 'Send,' it will First Redirect to WhatsApp Web and then to the + Corresponding Contact in our WhatsApp, Along with a Custom Message and a Link for Accessing the Document.

+
+
+
+
+
+
+ +
+
+

+ Send Multiple Documents through Whatsapp.

+
+
+
+
+
+
+ +
+
+

+ This Option Allows Us to Send Multiple Document References to A Single Customer. + However, It's Important to Note that We can Only Send Documents of a Single Customer + at a Time.

+
+
+
+
+
+
+
    +
  • + Community & Enterprise Support. +
  • +
  • + Whatsapp/Mail Icon in Systray Bar. +
  • +
  • + Whatsapp Floating Icon in Website. +
  • +
  • + Send Documents Through Whatsapp. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:13th December 2023 +
+

+ Initial Commit for Odoo Whatsapp Connector.

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

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

Odoo Customization

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

Odoo Implementation

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

Odoo Support

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

Hire Odoo Developer

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

Odoo Integration

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

Odoo Migration

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

Odoo Consultancy

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

Odoo Implementation

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

Odoo Licensing Consultancy

+
+
+
+
+
+
+

Our Industries

+
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

Education

+

A platform for educational management

+
+
+
+
+ +

Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service Management

+

Keep track of services and invoice

+
+
+
+
+ +

Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to us on WhatsApp!

+
+91 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/whatsapp_mail_messaging/static/src/css/icons.css b/whatsapp_mail_messaging/static/src/css/icons.css new file mode 100644 index 000000000..39d553590 --- /dev/null +++ b/whatsapp_mail_messaging/static/src/css/icons.css @@ -0,0 +1,6 @@ +.mail-icon{ + color: white; + position: absolute; + right: 47px; +} + diff --git a/whatsapp_mail_messaging/static/src/css/whatsapp_icon_website.css b/whatsapp_mail_messaging/static/src/css/whatsapp_icon_website.css new file mode 100644 index 000000000..1949a1cd8 --- /dev/null +++ b/whatsapp_mail_messaging/static/src/css/whatsapp_icon_website.css @@ -0,0 +1,17 @@ +.cy_whatsapp_web{ + position:fixed; + width:60px; + height:60px; + bottom:40px; + right:40px; + background-color:#25d366; + color:#FFF; + border-radius:50px; + text-align:center; + font-size:30px; + z-index:100; +} +.cy-icon{ + margin-top:16px; + color: white; +} diff --git a/whatsapp_mail_messaging/static/src/js/mail_icon.js b/whatsapp_mail_messaging/static/src/js/mail_icon.js new file mode 100644 index 000000000..8b20f0b0a --- /dev/null +++ b/whatsapp_mail_messaging/static/src/js/mail_icon.js @@ -0,0 +1,25 @@ +/** @odoo-module **/ +import { Dropdown } from '@web/core/dropdown/dropdown'; +import { DropdownItem } from '@web/core/dropdown/dropdown_item'; +import { registry } from '@web/core/registry'; +import { Component } from '@odoo/owl'; +/* Export new class MailButton by extending Component */ +export class MailButton extends Component { + /* On clicking mail icon */ + async onclick_mail_icon() { + this.env.services['action'].doAction({ + name: "Compose Mail", + type: "ir.actions.act_window", + res_model: 'mail.mail', + views: [[false, "form"]], + view_mode: "form", + target: "new", + }); + } +} +MailButton.template = 'whatsapp_mail_messaging.mail_icon'; +MailButton.components = {Dropdown, DropdownItem}; +export const mailbutton = { + Component: MailButton, +}; +registry.category('systray').add('MailButton', mailbutton); diff --git a/whatsapp_mail_messaging/static/src/js/whatsapp_icon.js b/whatsapp_mail_messaging/static/src/js/whatsapp_icon.js new file mode 100644 index 000000000..2a9e436ba --- /dev/null +++ b/whatsapp_mail_messaging/static/src/js/whatsapp_icon.js @@ -0,0 +1,25 @@ +/** @odoo-module **/ +import { Dropdown } from '@web/core/dropdown/dropdown'; +import { DropdownItem } from '@web/core/dropdown/dropdown_item'; +import { registry } from '@web/core/registry'; +import { Component } from '@odoo/owl'; +/* Export new class WhatsappIcon by extending Component */ +export class WhatsappIcon extends Component { + /* On clicking whatsapp icon */ + async onclick_whatsapp_icon() { + this.env.services['action'].doAction({ + name: "Compose Whatsapp Message", + type: "ir.actions.act_window", + res_model: 'whatsapp.send.message', + views: [[false, "form"]], + view_mode: "form", + target: "new", + }); + } +} +WhatsappIcon.template = 'whatsapp_mail_messaging.whatsapp_icon'; +WhatsappIcon.components = { Dropdown, DropdownItem }; +export const whatsapp_icon = { + Component: WhatsappIcon, +}; +registry.category('systray').add('WhatsappIcon', whatsapp_icon); diff --git a/whatsapp_mail_messaging/static/src/js/whatsapp_modal.js b/whatsapp_mail_messaging/static/src/js/whatsapp_modal.js new file mode 100644 index 000000000..1f4d02fc9 --- /dev/null +++ b/whatsapp_mail_messaging/static/src/js/whatsapp_modal.js @@ -0,0 +1,83 @@ +/** @odoo-module **/ +import publicWidget from "@web/legacy/js/public/public_widget"; +import { useService } from "@web/core/utils/hooks"; +import { jsonrpc } from "@web/core/network/rpc_service"; +// Define a new widget named 'deliveryDateToggl' that extends the 'publicWidget.Widget' class +publicWidget.registry.deliveryDateToggl = publicWidget.Widget.extend({ + selector: '#ModalWhatsapp', + events: { + 'change .custom-default': 'onclickCustomRadio', + 'change .default-default': 'onclickDefaultRadio', + 'change #myFormControl': 'onSelectChange', + 'click .btn-danger': 'onCloseButtonClick', + 'click .btn-success': 'onSendMessageClick', + }, + init() { + this._super.apply(this, arguments); + this.rpc = this.bindService("rpc"); + }, + // Hide the message templates if selected value is 'Custom' + onclickCustomRadio: function () { + document.querySelector('#myFormControl').style.display = "none"; + }, + // Show the message templates if selected value is 'Default' + onclickDefaultRadio: function () { + document.querySelector('#myFormControl').style.display = "block"; + let data = jsonrpc('/whatsapp_message', {data:'data'}) + this.updateUI(data); + }, + // Updates the user interface with message templates. + updateUI: function (data) { + var selectElement = document.querySelector("#myFormControl"); + selectElement.innerHTML = ''; // Clear existing options + var defaultOption = document.createElement('option'); + defaultOption.textContent = 'Select the Template'; + selectElement.appendChild(defaultOption); // Add default option + // Add options from the data + data.then((result) => { + const messages = result.messages; + messages.forEach((message) => { + var option = document.createElement('option'); + option.value = message.id; + option.textContent = message.name; + option.setAttribute('data-message', message.message); // Save the message as a data attribute + selectElement.appendChild(option); + }); + }) + }, + // Updates the selected message templates + onSelectChange: function () { + var selectElement = document.querySelector("#myFormControl"); + var textareaElement = document.querySelector("#exampleFormControlTextarea1"); + var selectedOption = selectElement.options[selectElement.selectedIndex]; + var selectedMessage = selectedOption.getAttribute('data-message'); + textareaElement.value = selectedMessage; // Update the textarea with the message from the selected option + }, + //Closing the Modal + onCloseButtonClick: function () { + document.querySelector("#ModalWhatsapp").style.display = "none"; + }, + // Send Message to Whatsapp + onSendMessageClick: function () { + var textareaElement = document.querySelector("#exampleFormControlTextarea1"); + var messageString = textareaElement.value; + let data = jsonrpc('/mobile_number', {data:'data'}) + data.then((result) => { + const mobile_num = result.mobile; + mobile_num.forEach((mobile) => { + // Check if 'mobile_number' is present in the first item of the 'data' array and is not falsy + if (mobile_num && mobile_num.length > 0 && 'mobile_number' in mobile_num[0] && mobile_num[0].mobile_number) { + var mobileNumber = mobile_num[0].mobile_number; + // Construct the WhatsApp URL using the mobile number and messageString + var whatsappUrl = 'https://api.whatsapp.com/send?phone=' + mobileNumber + '&text=' + encodeURIComponent(messageString); + // Open the WhatsApp URL in a new tab or window + window.open(whatsappUrl, '_blank'); + } else { + // If mobile number is not available or falsy, You might want to display a user-friendly error message on the UI" + document.querySelector("#phoneMessage").style.display = "block"; + } + }); + }) + }, +}); +export default publicWidget.registry.deliveryDateToggl; diff --git a/whatsapp_mail_messaging/static/src/js/whatsapp_web_icon.js b/whatsapp_mail_messaging/static/src/js/whatsapp_web_icon.js new file mode 100644 index 000000000..52284d708 --- /dev/null +++ b/whatsapp_mail_messaging/static/src/js/whatsapp_web_icon.js @@ -0,0 +1,17 @@ +/** @odoo-module **/ +import publicWidget from "@web/legacy/js/public/public_widget"; +// Define a new class named 'WhatsappIcon' that extends the 'publicWidget.Widget' class +publicWidget.registry.WhatsappIcon = publicWidget.Widget.extend({ + selector: '.cy_whatsapp_web', + events: { + 'click': '_onClickWhatsappIcon', + }, + start: function() { + this._super.apply(this, arguments); + }, + // Displays selection messages while clicking on whatsapp icon + _onClickWhatsappIcon: function (ev) { + $('#ModalWhatsapp').css('display', 'block'); + }, +}); +export default publicWidget.registry.WhatsappIcon; diff --git a/whatsapp_mail_messaging/static/src/xml/mail_icon_template.xml b/whatsapp_mail_messaging/static/src/xml/mail_icon_template.xml new file mode 100644 index 000000000..238c5d510 --- /dev/null +++ b/whatsapp_mail_messaging/static/src/xml/mail_icon_template.xml @@ -0,0 +1,11 @@ + + + + + + + diff --git a/whatsapp_mail_messaging/static/src/xml/whatsapp_icon_template.xml b/whatsapp_mail_messaging/static/src/xml/whatsapp_icon_template.xml new file mode 100644 index 000000000..a3375ae18 --- /dev/null +++ b/whatsapp_mail_messaging/static/src/xml/whatsapp_icon_template.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/whatsapp_mail_messaging/views/account_move_views.xml b/whatsapp_mail_messaging/views/account_move_views.xml new file mode 100644 index 000000000..e6d9e67a5 --- /dev/null +++ b/whatsapp_mail_messaging/views/account_move_views.xml @@ -0,0 +1,27 @@ + + + + + account.move.view.form.inherit.whatsapp.mail.messaging + account.move + + + +