diff --git a/whatsapp_redirect/README.rst b/whatsapp_redirect/README.rst new file mode 100644 index 000000000..6e9689ddf --- /dev/null +++ b/whatsapp_redirect/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Send Whatsapp Message +===================== +This module helps you to directly send messages to your +contacts through WhatsApp web. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Nishad@cybrosys + (V13) - Nimisha Murali + (V14) - Jibin James + (V15) - Midilaj VK + (V16) - Viswanth + (V17) - Jumana Jabin MP , 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_redirect/__init__.py b/whatsapp_redirect/__init__.py new file mode 100644 index 000000000..a79d06a08 --- /dev/null +++ b/whatsapp_redirect/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author:Jumana Jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models +from . import wizard diff --git a/whatsapp_redirect/__manifest__.py b/whatsapp_redirect/__manifest__.py new file mode 100644 index 000000000..08668b23b --- /dev/null +++ b/whatsapp_redirect/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author:Jumana Jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Send Whatsapp Message', + 'version': '17.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Send Message to partner via Whatsapp web', + 'description': 'This module helps you to directly send messages to your ' + 'contacts through WhatsApp web.', + 'author': 'Cybrosys Techno solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'contacts'], + 'data': [ + 'security/ir.model.access.csv', + 'views/res_partner_views.xml', + 'wizard/whatsapp_send_message_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/whatsapp_redirect/doc/RELEASE_NOTES.md b/whatsapp_redirect/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..459c39fd4 --- /dev/null +++ b/whatsapp_redirect/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 17.11.2023 +#### Version 17.0.1.0.0 +##### ADD +- Initial commit for Send Whatsapp Message diff --git a/whatsapp_redirect/models/__init__.py b/whatsapp_redirect/models/__init__.py new file mode 100644 index 000000000..6283eae3b --- /dev/null +++ b/whatsapp_redirect/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author:Jumana Jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import res_partner diff --git a/whatsapp_redirect/models/res_partner.py b/whatsapp_redirect/models/res_partner.py new file mode 100644 index 000000000..769598e05 --- /dev/null +++ b/whatsapp_redirect/models/res_partner.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author:Jumana Jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import models, _ + + +class ResPartner(models.Model): + """Extends the res_partner model to add a new action for sending WhatsApp + messages.""" + _inherit = 'res.partner' + + def action_send_msg(self): + """This function is called when the user clicks the + 'Send WhatsApp Message' button on a partner's form view. It opens a + new wizard to compose and send a WhatsApp message.""" + return {'type': 'ir.actions.act_window', + 'name': _('Whatsapp Message'), + 'res_model': 'whatsapp.send.message', + 'target': 'new', + 'view_mode': 'form', + 'view_type': 'form', + 'context': {'default_user_id': self.id}, } diff --git a/whatsapp_redirect/security/ir.model.access.csv b/whatsapp_redirect/security/ir.model.access.csv new file mode 100644 index 000000000..420ddac44 --- /dev/null +++ b/whatsapp_redirect/security/ir.model.access.csv @@ -0,0 +1,2 @@ +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 diff --git a/whatsapp_redirect/static/description/assets/icons/capture (1).png b/whatsapp_redirect/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/capture (1).png differ diff --git a/whatsapp_redirect/static/description/assets/icons/check.png b/whatsapp_redirect/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/check.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/chevron.png b/whatsapp_redirect/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/chevron.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/cogs.png b/whatsapp_redirect/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/cogs.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/consultation.png b/whatsapp_redirect/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/consultation.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/ecom-black.png b/whatsapp_redirect/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/ecom-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/education-black.png b/whatsapp_redirect/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/education-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/hotel-black.png b/whatsapp_redirect/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/hotel-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/img.png b/whatsapp_redirect/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/img.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/license.png b/whatsapp_redirect/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/license.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/lifebuoy.png b/whatsapp_redirect/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/lifebuoy.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/manufacturing-black.png b/whatsapp_redirect/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/manufacturing-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/photo-capture.png b/whatsapp_redirect/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/photo-capture.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/pos-black.png b/whatsapp_redirect/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/pos-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/puzzle.png b/whatsapp_redirect/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/puzzle.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/restaurant-black.png b/whatsapp_redirect/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/restaurant-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/service-black.png b/whatsapp_redirect/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/service-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/trading-black.png b/whatsapp_redirect/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/trading-black.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/training.png b/whatsapp_redirect/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/training.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/update.png b/whatsapp_redirect/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/update.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/user.png b/whatsapp_redirect/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/user.png differ diff --git a/whatsapp_redirect/static/description/assets/icons/wrench.png b/whatsapp_redirect/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/whatsapp_redirect/static/description/assets/icons/wrench.png differ diff --git a/whatsapp_redirect/static/description/assets/misc/Cybrosys R.png b/whatsapp_redirect/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/misc/Cybrosys R.png differ diff --git a/whatsapp_redirect/static/description/assets/misc/email.svg b/whatsapp_redirect/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/whatsapp_redirect/static/description/assets/misc/phone.svg b/whatsapp_redirect/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/whatsapp_redirect/static/description/assets/misc/star (1) 2.svg b/whatsapp_redirect/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_redirect/static/description/assets/misc/support (1) 1.svg b/whatsapp_redirect/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_redirect/static/description/assets/misc/support-email.svg b/whatsapp_redirect/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/whatsapp_redirect/static/description/assets/misc/tick-mark.svg b/whatsapp_redirect/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/whatsapp_redirect/static/description/assets/misc/whatsapp 1.svg b/whatsapp_redirect/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/whatsapp_redirect/static/description/assets/misc/whatsapp.svg b/whatsapp_redirect/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/whatsapp_redirect/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/whatsapp_redirect/static/description/assets/modules/11.png b/whatsapp_redirect/static/description/assets/modules/11.png new file mode 100644 index 000000000..eb3f8652f Binary files /dev/null and b/whatsapp_redirect/static/description/assets/modules/11.png differ diff --git a/whatsapp_redirect/static/description/assets/modules/12.png b/whatsapp_redirect/static/description/assets/modules/12.png new file mode 100644 index 000000000..6c3f4e8c3 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/modules/12.png differ diff --git a/whatsapp_redirect/static/description/assets/modules/13.png b/whatsapp_redirect/static/description/assets/modules/13.png new file mode 100644 index 000000000..7a9d3b1f6 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/modules/13.png differ diff --git a/whatsapp_redirect/static/description/assets/modules/14.png b/whatsapp_redirect/static/description/assets/modules/14.png new file mode 100644 index 000000000..c6a41b7ec Binary files /dev/null and b/whatsapp_redirect/static/description/assets/modules/14.png differ diff --git a/whatsapp_redirect/static/description/assets/modules/15.png b/whatsapp_redirect/static/description/assets/modules/15.png new file mode 100644 index 000000000..33a2b2e25 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/modules/15.png differ diff --git a/whatsapp_redirect/static/description/assets/modules/16.png b/whatsapp_redirect/static/description/assets/modules/16.png new file mode 100644 index 000000000..0d814d2db Binary files /dev/null and b/whatsapp_redirect/static/description/assets/modules/16.png differ diff --git a/whatsapp_redirect/static/description/assets/screenshots/1.png b/whatsapp_redirect/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..1df8a2256 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/screenshots/1.png differ diff --git a/whatsapp_redirect/static/description/assets/screenshots/2.png b/whatsapp_redirect/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..3daffd7c3 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/screenshots/2.png differ diff --git a/whatsapp_redirect/static/description/assets/screenshots/3.png b/whatsapp_redirect/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..9e3944f83 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/screenshots/3.png differ diff --git a/whatsapp_redirect/static/description/assets/screenshots/4.png b/whatsapp_redirect/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..1a30c354e Binary files /dev/null and b/whatsapp_redirect/static/description/assets/screenshots/4.png differ diff --git a/whatsapp_redirect/static/description/assets/screenshots/5.png b/whatsapp_redirect/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..d01fdd03d Binary files /dev/null and b/whatsapp_redirect/static/description/assets/screenshots/5.png differ diff --git a/whatsapp_redirect/static/description/assets/screenshots/hero.gif b/whatsapp_redirect/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..d6a4fdc97 Binary files /dev/null and b/whatsapp_redirect/static/description/assets/screenshots/hero.gif differ diff --git a/whatsapp_redirect/static/description/banner.jpg b/whatsapp_redirect/static/description/banner.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/whatsapp_redirect/static/description/banner.jpg differ diff --git a/whatsapp_redirect/static/description/icon.png b/whatsapp_redirect/static/description/icon.png new file mode 100644 index 000000000..b95b07c85 Binary files /dev/null and b/whatsapp_redirect/static/description/icon.png differ diff --git a/whatsapp_redirect/static/description/index.html b/whatsapp_redirect/static/description/index.html new file mode 100644 index 000000000..c6ab3b064 --- /dev/null +++ b/whatsapp_redirect/static/description/index.html @@ -0,0 +1,753 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+
+
+
+

+ Send Whatsapp Message

+

+ Send messages via WhatsApp

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ The WhatsApp Web Integration module allows you + to chat with customers + through WhatsApp, one of the popular messaging + app.

+ +
+
+
+
+
+
+ +
+
+

+ Available in Odoo 17.0 Community and + Enterprise. +

+
+
+
+
+
+
+ +
+
+

+ Send messages to partners via WhatsApp.

+
+
+
+
+
+
+ +
+
+

+ User-friendly and easy to use.

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

+ Enter the WhatsApp Number

+
+
+
+
+
+
+ +
+
+

+ Select 'WhatsApp' From Partner Form

+
+
+
+
+
+
+ +
+
+

+ Enter the Text That You Have to Send

+
+
+
+
+
+
+ +
+
+

+ Choose "Continue to Chat" Option

+
+
+
+
+
+
+ +
+
+

+ The Message is Delivered to Whatsapp Web

+
+
+
+
+
+
+
    +
  • + Community & Enterprise Support +
  • +
  • + Send Messages to Partners +
  • +
  • + User Friendly +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on: 17th November 2023 +
+

+ Initial Commit for Send Whatsapp Message

+
+
+
+
+
+
+

+ 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_redirect/views/res_partner_views.xml b/whatsapp_redirect/views/res_partner_views.xml new file mode 100644 index 000000000..188c736ce --- /dev/null +++ b/whatsapp_redirect/views/res_partner_views.xml @@ -0,0 +1,20 @@ + + + + + res.partner.view.form.inherit.whatsapp.redirect + res.partner + + + + +
+
+
+
+
+
diff --git a/whatsapp_redirect/wizard/__init__.py b/whatsapp_redirect/wizard/__init__.py new file mode 100644 index 000000000..9a862611e --- /dev/null +++ b/whatsapp_redirect/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author:Jumana Jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import whatsapp_send_message diff --git a/whatsapp_redirect/wizard/whatsapp_send_message.py b/whatsapp_redirect/wizard/whatsapp_send_message.py new file mode 100644 index 000000000..18a577a59 --- /dev/null +++ b/whatsapp_redirect/wizard/whatsapp_send_message.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author:Jumana Jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class WhatsappSendMessage(models.TransientModel): + """This model is used for sending WhatsApp messages through Odoo.""" + _name = 'whatsapp.send.message' + _description = "Whatsapp Wizard" + + user_id = fields.Many2one('res.partner', string="Recipient") + mobile = fields.Char(related='user_id.mobile', required=True) + message = fields.Text(string="Message", required=True) + + def action_send_message(self): + """This method is called to send the WhatsApp message using the + provided details.""" + 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)] + return { + 'type': 'ir.actions.act_url', + 'url': "https://api.whatsapp.com/send?phone=" + + self.user_id.mobile + "&text=" + message_string, + 'target': 'new', + 'res_id': self.id, + } diff --git a/whatsapp_redirect/wizard/whatsapp_send_message_views.xml b/whatsapp_redirect/wizard/whatsapp_send_message_views.xml new file mode 100644 index 000000000..47fcc0173 --- /dev/null +++ b/whatsapp_redirect/wizard/whatsapp_send_message_views.xml @@ -0,0 +1,24 @@ + + + + + whatsapp.send.message.view.form + whatsapp.send.message + + +
+ + + + + + + + +
+
+
+