diff --git a/whatsapp_mail_messaging/README.rst b/whatsapp_mail_messaging/README.rst
new file mode 100644
index 000000000..49a1903c7
--- /dev/null
+++ b/whatsapp_mail_messaging/README.rst
@@ -0,0 +1,44 @@
+.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
+ :alt: License: AGPL-3
+
+Odoo Whatsapp Connector
+=======================
+Odoo Whatsapp Connector For Sales, Invoice and Floating button in Website
+
+Configuration
+=============
+* No additional configurations needed
+
+Company
+-------
+* `Cybrosys Techno Solutions `__
+
+Credits
+-------
+* Developers: Nishad@cybrosys
+ version 14: Sayooj A O @cybrosys
+
+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..0f6fd26cd
--- /dev/null
+++ b/whatsapp_mail_messaging/__init__.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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 model
+from . import wizard
diff --git a/whatsapp_mail_messaging/__manifest__.py b/whatsapp_mail_messaging/__manifest__.py
new file mode 100644
index 000000000..8cff9ad6d
--- /dev/null
+++ b/whatsapp_mail_messaging/__manifest__.py
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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': '13.0.1.0.0',
+ 'category': 'Extra Tools',
+ 'summary': """Odoo Whatsapp Connector For Sales, Invoice, and Floating button in Website""",
+ 'description': """Added options for sending Whatsapp messages and Mails in systray bar,sale order, invoices,
+ website portal view and share the access url of documents using share option available in each records through
+ Whatsapp web""",
+ 'author': 'Cybrosys Techno Solutions',
+ 'website': "https://www.cybrosys.com",
+ 'company': 'Cybrosys Techno Solutions',
+ 'maintainer': 'Cybrosys Techno Solutions',
+ 'depends': ['sale', 'account', 'website'],
+ 'data': [
+ 'views/assets.xml',
+ 'views/portal_whatsapp_view.xml',
+ 'views/sale_order_inherited.xml',
+ 'views/account_move_inherited.xml',
+ 'views/website_inherited.xml',
+ 'wizard/wh_message_wizard.xml',
+ 'wizard/portal_share_inherited.xml',
+ 'security/ir.model.access.csv',
+ ],
+ 'qweb': [
+ 'static/src/xml/whatsapp_button.xml',
+ 'static/src/xml/mail_button.xml',
+ ],
+ 'images': ['static/description/banner.gif'],
+ 'license': 'LGPL-3',
+ 'installable': True,
+ 'auto_install': False,
+ 'application': True,
+}
diff --git a/whatsapp_mail_messaging/doc/changelog.md b/whatsapp_mail_messaging/doc/changelog.md
new file mode 100644
index 000000000..29478f745
--- /dev/null
+++ b/whatsapp_mail_messaging/doc/changelog.md
@@ -0,0 +1,10 @@
+## Module
+
+#### 22.06.2021
+#### Version 13.0.1.0.0
+#### ADD
+- Initial commit
+
+
+
+
diff --git a/whatsapp_mail_messaging/model/__init__.py b/whatsapp_mail_messaging/model/__init__.py
new file mode 100644
index 000000000..f2695008d
--- /dev/null
+++ b/whatsapp_mail_messaging/model/__init__.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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 website
+from . import sale_order
+from . import account_move
diff --git a/whatsapp_mail_messaging/model/account_move.py b/whatsapp_mail_messaging/model/account_move.py
new file mode 100644
index 000000000..897dd981d
--- /dev/null
+++ b/whatsapp_mail_messaging/model/account_move.py
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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 models
+
+
+class Account(models.Model):
+ _inherit = 'account.move'
+
+ def action_send_whatsapp(self):
+ compose_form_id = self.env.ref('whatsapp_mail_messaging.whatsapp_message_wizard_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.message.wizard',
+ 'views': [(compose_form_id, 'form')],
+ 'view_id': compose_form_id,
+ 'target': 'new',
+ 'context': ctx,
+ }
diff --git a/whatsapp_mail_messaging/model/sale_order.py b/whatsapp_mail_messaging/model/sale_order.py
new file mode 100644
index 000000000..681e34e63
--- /dev/null
+++ b/whatsapp_mail_messaging/model/sale_order.py
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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 models
+
+
+class Sale(models.Model):
+ _inherit = 'sale.order'
+
+ def action_send_whatsapp(self):
+ compose_form_id = self.env.ref('whatsapp_mail_messaging.whatsapp_message_wizard_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.message.wizard',
+ 'views': [(compose_form_id, 'form')],
+ 'view_id': compose_form_id,
+ 'target': 'new',
+ 'context': ctx,
+ }
diff --git a/whatsapp_mail_messaging/model/website.py b/whatsapp_mail_messaging/model/website.py
new file mode 100644
index 000000000..94c2ad9ff
--- /dev/null
+++ b/whatsapp_mail_messaging/model/website.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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):
+ _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..df424fde7
--- /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_message_wizard,access.whatsapp.message.wizard,model_whatsapp_message_wizard,base.group_user,1,1,1,1
+
diff --git a/whatsapp_mail_messaging/static/description/assets/._.DS_Store b/whatsapp_mail_messaging/static/description/assets/._.DS_Store
new file mode 100644
index 000000000..9ad849cdb
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/._.DS_Store differ
diff --git a/whatsapp_mail_messaging/static/description/assets/hero.gif b/whatsapp_mail_messaging/static/description/assets/hero.gif
new file mode 100644
index 000000000..4c355413f
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/hero.gif differ
diff --git a/whatsapp_mail_messaging/static/description/assets/icons/._.DS_Store b/whatsapp_mail_messaging/static/description/assets/icons/._.DS_Store
new file mode 100644
index 000000000..9ad849cdb
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/._.DS_Store 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..f7148d473
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..aa8a531ac
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..ff71cac34
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..038789127
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..962af8bbc
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/._license.png b/whatsapp_mail_messaging/static/description/assets/icons/._license.png
new file mode 100644
index 000000000..26ba90fe5
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..51bb6606d
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..54bc914ea
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/._pos-black.png b/whatsapp_mail_messaging/static/description/assets/icons/._pos-black.png
new file mode 100644
index 000000000..a11f4cd96
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..f7e7e7e33
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..33ea178a3
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..0ec2cf2a5
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..d6299d375
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..9bade5f8e
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..48784837e
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..d5b105ad2
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..db48ce407
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/icons/01.png b/whatsapp_mail_messaging/static/description/assets/icons/01.png
new file mode 100644
index 000000000..96116b285
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/01.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/icons/02.png b/whatsapp_mail_messaging/static/description/assets/icons/02.png
new file mode 100644
index 000000000..9dd8a71b4
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/02.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/icons/03.png b/whatsapp_mail_messaging/static/description/assets/icons/03.png
new file mode 100644
index 000000000..efefc08de
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/03.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/icons/04.png b/whatsapp_mail_messaging/static/description/assets/icons/04.png
new file mode 100644
index 000000000..d4697d252
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/04.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/feature-icons/._lifebuoy.png b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/._lifebuoy.png
new file mode 100644
index 000000000..4f178d2ad
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/._lifebuoy.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/document.png b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/document.png
new file mode 100644
index 000000000..4054e8480
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/document.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/down.png b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/down.png
new file mode 100644
index 000000000..65a94a23b
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/down.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/lifebuoy.png b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/lifebuoy.png
new file mode 100644
index 000000000..658d56ccc
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/icons/feature-icons/lifebuoy.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/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/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/modules/discount.png b/whatsapp_mail_messaging/static/description/assets/modules/discount.png
new file mode 100644
index 000000000..2901d6ef4
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/discount.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/modules/dynamic_financial_report.jpg b/whatsapp_mail_messaging/static/description/assets/modules/dynamic_financial_report.jpg
new file mode 100644
index 000000000..c79986ab0
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/dynamic_financial_report.jpg differ
diff --git a/whatsapp_mail_messaging/static/description/assets/modules/invoice.jpg b/whatsapp_mail_messaging/static/description/assets/modules/invoice.jpg
new file mode 100644
index 000000000..26fb9d33f
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/invoice.jpg differ
diff --git a/whatsapp_mail_messaging/static/description/assets/modules/payroll_accounting.png b/whatsapp_mail_messaging/static/description/assets/modules/payroll_accounting.png
new file mode 100644
index 000000000..488b05c36
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/payroll_accounting.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/modules/pos_dashboard.png b/whatsapp_mail_messaging/static/description/assets/modules/pos_dashboard.png
new file mode 100644
index 000000000..a915fe4c5
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/pos_dashboard.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/modules/shopify.png b/whatsapp_mail_messaging/static/description/assets/modules/shopify.png
new file mode 100644
index 000000000..f2751c663
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/modules/shopify.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_1.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_1.png
new file mode 100644
index 000000000..f8e592f5e
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_1.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_10.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_10.png
new file mode 100644
index 000000000..33cc40db9
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_10.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_11.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_11.png
new file mode 100644
index 000000000..d855a5b72
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_11.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_12.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_12.png
new file mode 100644
index 000000000..8cfff4433
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_12.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_13.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_13.png
new file mode 100644
index 000000000..42897ad7f
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_13.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_14.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_14.png
new file mode 100644
index 000000000..63912a6d2
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_14.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_15.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_15.png
new file mode 100644
index 000000000..fb395ecfe
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_15.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_16.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_16.png
new file mode 100644
index 000000000..8f682d3d5
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_16.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_17.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_17.png
new file mode 100644
index 000000000..383a073a8
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_17.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_18.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_18.png
new file mode 100644
index 000000000..125c6173f
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_18.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_19.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_19.png
new file mode 100644
index 000000000..81faccbb7
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_19.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_2.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_2.png
new file mode 100644
index 000000000..b8c36e87e
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_2.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_3.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_3.png
new file mode 100644
index 000000000..fb217b7ca
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_3.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_4.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_4.png
new file mode 100644
index 000000000..6a3b8aeb7
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_4.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_5.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_5.png
new file mode 100644
index 000000000..fb3b8f65e
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_5.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_6.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_6.png
new file mode 100644
index 000000000..d74215a38
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_6.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_7.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_7.png
new file mode 100644
index 000000000..4fe0b1fd8
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_7.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_8.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_8.png
new file mode 100644
index 000000000..b2c645cda
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_8.png differ
diff --git a/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_9.png b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_9.png
new file mode 100644
index 000000000..8b13de2d1
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/assets/screenshots/whatsapp_mail_messaging_9.png differ
diff --git a/whatsapp_mail_messaging/static/description/banner.gif b/whatsapp_mail_messaging/static/description/banner.gif
new file mode 100644
index 000000000..f5e06f697
Binary files /dev/null and b/whatsapp_mail_messaging/static/description/banner.gif 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..bc3bca6d3
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..e7a243771
--- /dev/null
+++ b/whatsapp_mail_messaging/static/description/index.html
@@ -0,0 +1,662 @@
+
+
+
+
+
+
+
+ Odoo Whatsapp Connector
+
+
+ Added options for sending Whatsapp messages and Mails in systray bar,sale order, invoices, website portal view and share the access url of
+ documents using share option available in each records through Whatsapp web.
+
+
+
+
+
+
+
+
+
+
+
+ Whatsapp/Mail Icon in systray bar
+
+ Using these icons we can send quick messages to any contacts through mail and whatsapp web.
+
+
+
+
+
+
+ Whatsapp floating icon in website
+
+ Added a whatsapp icon in website in which the customers can communicate with website through whatsapp.
+
+
+
+
+
+
+
+
+
+ Whatsapp button in Sales and Invoice
+
+ Using this button we can send the order/invoice details to the customer of the
+ corresponding documents..
+
+
+
+
+
+
+ Added Whatsapp as a share option
+
+ With this we can share the access link of document to customers through whatsapp web.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Screenshots
+
+
+
+
+
+
1
+
+
Added Whatsapp and Mail icon in the systray bar
+
+
+
+
+
+
+
2
+
+
By clicking on the mail icon we will have a mail composing screen like below
+ which we can specify the content,customer,subject and attachments.
+
+
+
+
+
+
+
3
+
+
After click on send from the composing wizard the corresponding recipients will receive the mail.
+
+
+
+
+
+
+
4
+
+
We have to specify the mobile field in contact form along with the country code for filling
+ the mobile number automatically in the whatsapp message composing wizard.
+
+
+
+
+
+
+
5
+
+
After click on the whatsapp icon in systray, we will have a message composing screen like this.
+
+
+
+
+
+
+
6
+
+
After click on send , we will redirected to the whatsapp web along with our message
+
+
+
+
+
+
+
7
+
+
The message we entered in odoo will carried to the corresponding number in our contact.
+
+
+
+
+
+
+
8
+
+
In Invoice form view we will have a button "Send by Whatsapp"
+
+
+
+
+
+
+
9
+
+
By clicking on "Send by Whatsapp" button ,a popup will arrive with auto filled details such as recipient,number and required content,
+ we can edit those details if required.
+
+
+
+
+
+
+
10
+
+
The message will redirect to the whatsapp web with the details in the popup.
+
+
+
+
+
+
+
11
+
+
In Sale Order form view we will have a button "Send by Whatsapp"
+
+
+
+
+
+
+
12
+
+
By clicking on "Send by Whatsapp" button ,a popup will arrive with auto filled details such as recipient,number and required content,
+ we can edit those details if required.
+
+
+
+
+
+
+
13
+
+
The message will redirect to the whatsapp web with the details in the popup
+
+
+
+
+
+
+
14
+
+
In the website form view we can define the number along with country code required for communicating with the
+ website responsible.
+
+
+
+
+
+
+
15
+
+
There will be a whatsapp icon present in the website.
+
+
+
+
+
+
+
16
+
+
By clicking on the whatsapp floating icon it will redirect to whatsapp web with the recipient as the number specified in corresponding website
+
+
+
+
+
+
+
17
+
+
We will have a share menu in documents like sales order, invoices, purchase etc..
+
+
+
+
+
+
+
18
+
+
By clicking on that there will be an additional option 'Whatsapp" in the popup screen where we can add the customer
+ and additional contents if we need.
+
+
+
+
+
+
+
19
+
+
After click on send first it will redirected to then whatsapp web and then to corresponding contact in our whatsapp
+ along with the custom message and link for accessing the document.
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/static/src/css/whatsapp.css b/whatsapp_mail_messaging/static/src/css/whatsapp.css
new file mode 100644
index 000000000..91dd355b3
--- /dev/null
+++ b/whatsapp_mail_messaging/static/src/css/whatsapp.css
@@ -0,0 +1,22 @@
+.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;
+}
+
+.fa-whatsapp {
+ color:#FFF;
+}
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/static/src/js/mail_button.js b/whatsapp_mail_messaging/static/src/js/mail_button.js
new file mode 100644
index 000000000..a1b492e37
--- /dev/null
+++ b/whatsapp_mail_messaging/static/src/js/mail_button.js
@@ -0,0 +1,24 @@
+odoo.define('global_mail_message.mail_button', function(require) {
+ "use strict";
+ var SystrayMenu = require('web.SystrayMenu');
+ var Widget = require('web.Widget');
+ var ActionMenu = Widget.extend({
+ template: 'global_mail_message.mail_icon',
+ events: {
+ 'click .mail_icon': 'onclick_mail_icon',
+ },
+ onclick_mail_icon: function() {
+ var self = this;
+ self.do_action({
+ name: 'Compose Mail',
+ res_model: 'mail.compose.message',
+ views: [[false, 'form']],
+ type: 'ir.actions.act_window',
+ view_mode: 'form',
+ target: 'new'
+ });
+ },
+ });
+ SystrayMenu.Items.push(ActionMenu);
+ return ActionMenu;
+});
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/static/src/js/whatsapp_button.js b/whatsapp_mail_messaging/static/src/js/whatsapp_button.js
new file mode 100644
index 000000000..08f073f7a
--- /dev/null
+++ b/whatsapp_mail_messaging/static/src/js/whatsapp_button.js
@@ -0,0 +1,24 @@
+odoo.define('whatsapp_mail_messaging.whatsapp_button', function(require) {
+ "use strict";
+ var SystrayMenu = require('web.SystrayMenu');
+ var Widget = require('web.Widget');
+ var ActionMenu = Widget.extend({
+ template: 'whatsapp_mail_messaging.whatsapp_icon',
+ events: {
+ 'click .whatsapp_icon': 'onclick_whatsapp_icon',
+ },
+ onclick_whatsapp_icon: function() {
+ var self = this;
+ self.do_action({
+ name: 'Compose Whatsapp Message',
+ res_model: 'whatsapp.message.wizard',
+ views: [[false, 'form']],
+ type: 'ir.actions.act_window',
+ view_mode: 'form',
+ target: 'new'
+ });
+ },
+ });
+ SystrayMenu.Items.push(ActionMenu);
+ return ActionMenu;
+});
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/static/src/xml/mail_button.xml b/whatsapp_mail_messaging/static/src/xml/mail_button.xml
new file mode 100644
index 000000000..b349ab769
--- /dev/null
+++ b/whatsapp_mail_messaging/static/src/xml/mail_button.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/static/src/xml/whatsapp_button.xml b/whatsapp_mail_messaging/static/src/xml/whatsapp_button.xml
new file mode 100644
index 000000000..7fbbbd109
--- /dev/null
+++ b/whatsapp_mail_messaging/static/src/xml/whatsapp_button.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/views/account_move_inherited.xml b/whatsapp_mail_messaging/views/account_move_inherited.xml
new file mode 100644
index 000000000..fa7784d90
--- /dev/null
+++ b/whatsapp_mail_messaging/views/account_move_inherited.xml
@@ -0,0 +1,14 @@
+
+
+
+ account.move.form.view.inherited
+ account.move
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/views/assets.xml b/whatsapp_mail_messaging/views/assets.xml
new file mode 100644
index 000000000..adb67f750
--- /dev/null
+++ b/whatsapp_mail_messaging/views/assets.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/views/portal_whatsapp_view.xml b/whatsapp_mail_messaging/views/portal_whatsapp_view.xml
new file mode 100644
index 000000000..c9bd32804
--- /dev/null
+++ b/whatsapp_mail_messaging/views/portal_whatsapp_view.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/views/sale_order_inherited.xml b/whatsapp_mail_messaging/views/sale_order_inherited.xml
new file mode 100644
index 000000000..917c3f5d8
--- /dev/null
+++ b/whatsapp_mail_messaging/views/sale_order_inherited.xml
@@ -0,0 +1,14 @@
+
+
+
+ sale.order.form.view.inherited
+ sale.order
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/views/website_inherited.xml b/whatsapp_mail_messaging/views/website_inherited.xml
new file mode 100644
index 000000000..e1c00b442
--- /dev/null
+++ b/whatsapp_mail_messaging/views/website_inherited.xml
@@ -0,0 +1,13 @@
+
+
+
+ website.form.inherit
+ website
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/wizard/__init__.py b/whatsapp_mail_messaging/wizard/__init__.py
new file mode 100644
index 000000000..5792512c2
--- /dev/null
+++ b/whatsapp_mail_messaging/wizard/__init__.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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 wh_message_wizard
+from . import portal_share
diff --git a/whatsapp_mail_messaging/wizard/portal_share.py b/whatsapp_mail_messaging/wizard/portal_share.py
new file mode 100644
index 000000000..8fcd518b2
--- /dev/null
+++ b/whatsapp_mail_messaging/wizard/portal_share.py
@@ -0,0 +1,65 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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 .
+#
+#############################################################################
+
+import urllib.parse as urllib
+
+from odoo import models, fields, api
+
+
+class PortalShare(models.TransientModel):
+ _inherit = 'portal.share'
+
+ share_type = fields.Selection([
+ ('mail', 'Mail'),
+ ('whatsapp', 'Whatsapp')], string="Sharing Method", default="mail")
+ mobile_number = fields.Char()
+ partner_id = fields.Many2one('res.partner', string='Customer')
+
+ @api.onchange('partner_id')
+ def _onchange_partner_id(self):
+ self.mobile_number = self.partner_id.mobile
+
+ def action_send_whatsapp(self):
+ """"""
+ """In this function we are redirecting to the whatsapp web
+ with required parameters"""
+ if self.note and self.mobile_number:
+ if self.res_model == 'sale.order':
+ common_message = 'You have been invited to access the following Sale Order.'
+ elif self.res_model == 'account.move':
+ common_message = 'You have been invited to access the following Invoice.'
+ elif self.res_model == 'purchase.order':
+ common_message = 'You have been invited to access the following Purchase.'
+ else:
+ common_message = 'You have been invited to access the following Document.'
+ message_string = self.note + '%0a' + common_message + '%0a' + urllib.quote(self.share_link)
+ related_record = self.env[self.res_model].search([('id', '=', int(self.res_id))])
+ related_record.message_post(body=message_string)
+ return {
+ 'type': 'ir.actions.act_url',
+ 'url': "https://api.whatsapp.com/send?phone=" + self.mobile_number + "&text=" + message_string,
+ 'target': 'new',
+ 'res_id': self.id,
+ }
+
+
+
diff --git a/whatsapp_mail_messaging/wizard/portal_share_inherited.xml b/whatsapp_mail_messaging/wizard/portal_share_inherited.xml
new file mode 100644
index 000000000..0526af719
--- /dev/null
+++ b/whatsapp_mail_messaging/wizard/portal_share_inherited.xml
@@ -0,0 +1,39 @@
+
+
+
+
+ view.portal.share.form.inherit
+ portal.share
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/whatsapp_mail_messaging/wizard/wh_message_wizard.py b/whatsapp_mail_messaging/wizard/wh_message_wizard.py
new file mode 100644
index 000000000..96cec17c0
--- /dev/null
+++ b/whatsapp_mail_messaging/wizard/wh_message_wizard.py
@@ -0,0 +1,57 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Cybrosys Technologies Pvt. Ltd.
+#
+# Copyright (C) 2020-TODAY Cybrosys Technologies()
+# Author: Sayooj A O()
+#
+# 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 models, fields, api
+
+
+class WhatsappSendMessage(models.TransientModel):
+ _name = 'whatsapp.message.wizard'
+
+ partner_id = fields.Many2one('res.partner', string="Recipient")
+ mobile = fields.Char(required=True, string="Contact Number")
+ message = fields.Text(string="Message", required=True)
+ image_1920 = fields.Binary(readonly=1)
+
+ @api.onchange('partner_id')
+ def _onchange_partner_id(self):
+ """Function for fetching the mobile number and image of partner
+ in Odoo"""
+ self.mobile = self.partner_id.mobile
+ self.image_1920 = self.partner_id.image_1920
+
+ def send_message(self):
+ """In this function we are redirecting to the whatsapp web
+ with required parameters"""
+ if self.message and self.mobile:
+ message_string = ''
+ message = self.message.split(' ')
+ for msg in message:
+ message_string = message_string + msg + '%20'
+ message_string = message_string[:(len(message_string) - 3)]
+ message_post_content = message_string
+ self.partner_id.message_post(body=message_post_content)
+ return {
+ 'type': 'ir.actions.act_url',
+ 'url': "https://api.whatsapp.com/send?phone=" + self.mobile + "&text=" + message_string,
+ 'target': 'new',
+ 'res_id': self.id,
+ }
diff --git a/whatsapp_mail_messaging/wizard/wh_message_wizard.xml b/whatsapp_mail_messaging/wizard/wh_message_wizard.xml
new file mode 100644
index 000000000..4519f1377
--- /dev/null
+++ b/whatsapp_mail_messaging/wizard/wh_message_wizard.xml
@@ -0,0 +1,37 @@
+
+
+
+
+ whatsapp.message.wizard.form
+ whatsapp.message.wizard
+
+
+
+
+
+
+
\ No newline at end of file