Browse Source

DEC 02 : [ADD] Initial Commit 'survey_whatsapp_integration'

pull/295/head
Shijin V 1 year ago
parent
commit
72c95ebb9c
  1. 46
      survey_whatsapp_integration/README.rst
  2. 23
      survey_whatsapp_integration/__init__.py
  3. 48
      survey_whatsapp_integration/__manifest__.py
  4. 5
      survey_whatsapp_integration/doc/RELEASE_NOTES.md
  5. 24
      survey_whatsapp_integration/models/__init__.py
  6. 90
      survey_whatsapp_integration/models/configuration_manager.py
  7. 42
      survey_whatsapp_integration/models/survey_survey.py
  8. 39
      survey_whatsapp_integration/models/whatsapp_message.py
  9. 5
      survey_whatsapp_integration/security/ir.model.access.csv
  10. 9
      survey_whatsapp_integration/security/survey_whatsapp_integration_groups.xml
  11. BIN
      survey_whatsapp_integration/static/description/assets/icons/chevron.png
  12. BIN
      survey_whatsapp_integration/static/description/assets/icons/cogs.png
  13. BIN
      survey_whatsapp_integration/static/description/assets/icons/consultation.png
  14. BIN
      survey_whatsapp_integration/static/description/assets/icons/ecom-black.png
  15. BIN
      survey_whatsapp_integration/static/description/assets/icons/education-black.png
  16. BIN
      survey_whatsapp_integration/static/description/assets/icons/hotel-black.png
  17. BIN
      survey_whatsapp_integration/static/description/assets/icons/license.png
  18. BIN
      survey_whatsapp_integration/static/description/assets/icons/lifebuoy.png
  19. BIN
      survey_whatsapp_integration/static/description/assets/icons/manufacturing-black.png
  20. BIN
      survey_whatsapp_integration/static/description/assets/icons/pos-black.png
  21. BIN
      survey_whatsapp_integration/static/description/assets/icons/puzzle.png
  22. BIN
      survey_whatsapp_integration/static/description/assets/icons/restaurant-black.png
  23. BIN
      survey_whatsapp_integration/static/description/assets/icons/service-black.png
  24. BIN
      survey_whatsapp_integration/static/description/assets/icons/trading-black.png
  25. BIN
      survey_whatsapp_integration/static/description/assets/icons/training.png
  26. BIN
      survey_whatsapp_integration/static/description/assets/icons/update.png
  27. BIN
      survey_whatsapp_integration/static/description/assets/icons/user.png
  28. BIN
      survey_whatsapp_integration/static/description/assets/icons/wrench.png
  29. BIN
      survey_whatsapp_integration/static/description/assets/misc/categories.png
  30. BIN
      survey_whatsapp_integration/static/description/assets/misc/check-box.png
  31. BIN
      survey_whatsapp_integration/static/description/assets/misc/compass.png
  32. BIN
      survey_whatsapp_integration/static/description/assets/misc/corporate.png
  33. BIN
      survey_whatsapp_integration/static/description/assets/misc/customer-support.png
  34. BIN
      survey_whatsapp_integration/static/description/assets/misc/cybrosys-logo.png
  35. BIN
      survey_whatsapp_integration/static/description/assets/misc/features.png
  36. BIN
      survey_whatsapp_integration/static/description/assets/misc/logo.png
  37. BIN
      survey_whatsapp_integration/static/description/assets/misc/pictures.png
  38. BIN
      survey_whatsapp_integration/static/description/assets/misc/pie-chart.png
  39. BIN
      survey_whatsapp_integration/static/description/assets/misc/right-arrow.png
  40. BIN
      survey_whatsapp_integration/static/description/assets/misc/star.png
  41. BIN
      survey_whatsapp_integration/static/description/assets/misc/support.png
  42. BIN
      survey_whatsapp_integration/static/description/assets/misc/whatsapp.png
  43. BIN
      survey_whatsapp_integration/static/description/assets/modules/1.png
  44. BIN
      survey_whatsapp_integration/static/description/assets/modules/2.png
  45. BIN
      survey_whatsapp_integration/static/description/assets/modules/3.png
  46. BIN
      survey_whatsapp_integration/static/description/assets/modules/4.png
  47. BIN
      survey_whatsapp_integration/static/description/assets/modules/5.png
  48. BIN
      survey_whatsapp_integration/static/description/assets/modules/6.png
  49. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/hero.gif
  50. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_-1.png
  51. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_0.png
  52. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_1.png
  53. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_10.png
  54. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_2.png
  55. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_3.png
  56. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_4.png
  57. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_5.png
  58. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_6.png
  59. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_7.png
  60. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_8.png
  61. BIN
      survey_whatsapp_integration/static/description/assets/screenshots/wp_9.png
  62. BIN
      survey_whatsapp_integration/static/description/banner.jpg
  63. BIN
      survey_whatsapp_integration/static/description/icon.png
  64. 588
      survey_whatsapp_integration/static/description/index.html
  65. 39
      survey_whatsapp_integration/views/configuration_manager_views.xml
  66. 22
      survey_whatsapp_integration/views/survey_survey_views.xml
  67. 10
      survey_whatsapp_integration/views/survey_whatsapp_integration_menu.xml
  68. 22
      survey_whatsapp_integration/views/whatsapp_message_views.xml
  69. 23
      survey_whatsapp_integration/wizard/__init__.py
  70. 93
      survey_whatsapp_integration/wizard/survey_whatsapp.py
  71. 26
      survey_whatsapp_integration/wizard/survey_whatsapp_views.xml
  72. 63
      survey_whatsapp_integration/wizard/whatsapp_authenticate.py
  73. 20
      survey_whatsapp_integration/wizard/whatsapp_authenticate_views.xml

46
survey_whatsapp_integration/README.rst

@ -0,0 +1,46 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Survey Whatsapp Integration
===========================
This module helps to share survey link to customers through whatsapp.
Configuration
=============
* Enable whatsapp user in settings
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (AGPL v3).
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
-------
* Developers: (V16)Farhana Jahan PT, 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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
survey_whatsapp_integration/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import wizard

48
survey_whatsapp_integration/__manifest__.py

@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Survey Whatsapp Integration',
'version': '16.0.1.0.0',
'category': 'Extra Tools',
'summary': """Send survey link through whatsapp.""",
'description': 'This module allows users to send link and'
' other details about survey through whatsapp.',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['survey'],
'data': ['security/survey_whatsapp_integration_groups.xml',
'security/ir.model.access.csv',
'views/survey_survey_views.xml',
'views/configuration_manager_views.xml',
'views/whatsapp_message_views.xml',
'views/survey_whatsapp_integration_menu.xml',
'wizard/survey_whatsapp_views.xml',
'wizard/whatsapp_authenticate_views.xml',
],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

5
survey_whatsapp_integration/doc/RELEASE_NOTES.md

@ -0,0 +1,5 @@
## Module <survey_whatsapp_integration>
#### 02.12.2023
#### Version 16.0.1.0.0
##### ADD
- Initial commit for Survey Whatsapp Integration

24
survey_whatsapp_integration/models/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import configuration_manager
from . import survey_survey
from . import whatsapp_message

90
survey_whatsapp_integration/models/configuration_manager.py

@ -0,0 +1,90 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
import requests
from odoo import fields, models, _
from odoo.exceptions import ValidationError
class ConfigurationManager(models.Model):
"""Create new model"""
_name = "configuration.manager"
_description = "Configuration Manager"
_rec_name = 'instance'
instance = fields.Char(string="Instance", required=True,
help="Give instance for whatsapp api")
token = fields.Char(string="Token", required=True,
help="Give token for whatsapp api")
state = fields.Selection(
selection=[('draft', 'Draft'),
('verified', 'Verified')],
default='draft', string="state",
help="State for connection")
def action_authenticate(self):
""" Opens a wizard for scanning QR code,
After scanning number get active status."""
url = "https://api.apichat.io/v1/status"
headers = {
"client-id": self.instance,
"token": self.token
}
req = requests.get(url, headers=headers, timeout=10)
if req.status_code != 200:
raise ValidationError(_("Please provide valid token"))
if req.text == 'Client not found.':
return self.display_notification('danger',
'Please check the field values')
if 'qr' in req.json().keys():
self.state = "draft"
new_data = req.json()['qr'].replace('data:image/png;base64,', '')
return self.open_authenticate_wizard(new_data)
if req.json()['is_connected']:
self.state = "verified"
return self.display_notification('success',
'Already connected')
def display_notification(self, message_type, message):
""" Got connected message"""
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'message': message,
'type': message_type,
'sticky': False,
}
}
def open_authenticate_wizard(self, qrcode):
"""Opens QR code scanning wizard"""
return {
'type': 'ir.actions.act_window',
'res_model': 'whatsapp.authenticate',
'name': 'WhatsApp Connect',
'views': [(False, 'form')],
'target': 'new',
'context': {
'default_qrcode': qrcode,
'default_config_manager_id': self.id,
}
}

42
survey_whatsapp_integration/models/survey_survey.py

@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models
class SurveySurvey(models.Model):
""" Inherit survey,so we are adding a
wizard for sending whatsapp. """
_inherit = 'survey.survey'
def action_whatsapp_send(self):
"""Opens a wizard for whatsapp share"""
return {
'name': "Whatsapp Share",
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'survey.whatsapp',
'view_id': self.env.ref(
'survey_whatsapp_integration.survey_whatsapp_view_form').id,
'target': 'new',
'context': {'default_survey_id': self.id}
}

39
survey_whatsapp_integration/models/whatsapp_message.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class WhatsappMessage(models.Model):
"""Create new model"""
_name = "whatsapp.message"
_description = "Whatsapp Message"
_rec_name = 'to_user'
status = fields.Char(string="Status",
help="status of whatsapp messages")
from_user = fields.Many2one('res.users', string="Sent From",
help="from user in whatsapp messages",
required=True)
to_user = fields.Char(string="Sent to",
help="to user in whatsapp messages", required=True)
body = fields.Char(string="Message",
help="Message body in whatsapp messages", required=True)

5
survey_whatsapp_integration/security/ir.model.access.csv

@ -0,0 +1,5 @@
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
access_survey_whatsapp,access.survey.whatsapp,model_survey_whatsapp,base.group_user,1,1,1,1
access_configuration_manager_whatsapp_user,access.configuration.manager.whatsapp.user,model_configuration_manager,survey_whatsapp_integration.survey_whatsapp_integration_group_user,1,1,1,1
access_whatsapp_authenticate_whatsapp_user,access.whatsapp.authenticate.whatsapp.user,model_whatsapp_authenticate,survey_whatsapp_integration.survey_whatsapp_integration_group_user,1,1,1,1
access_whatsapp_message_whatsapp_user,access.whatsapp.message.whatsapp.user,model_whatsapp_message,survey_whatsapp_integration.survey_whatsapp_integration_group_user,1,1,1,1
1 id name model_id/id group_id/id perm_read perm_write perm_create perm_unlink
2 access_survey_whatsapp access.survey.whatsapp model_survey_whatsapp base.group_user 1 1 1 1
3 access_configuration_manager_whatsapp_user access.configuration.manager.whatsapp.user model_configuration_manager survey_whatsapp_integration.survey_whatsapp_integration_group_user 1 1 1 1
4 access_whatsapp_authenticate_whatsapp_user access.whatsapp.authenticate.whatsapp.user model_whatsapp_authenticate survey_whatsapp_integration.survey_whatsapp_integration_group_user 1 1 1 1
5 access_whatsapp_message_whatsapp_user access.whatsapp.message.whatsapp.user model_whatsapp_message survey_whatsapp_integration.survey_whatsapp_integration_group_user 1 1 1 1

9
survey_whatsapp_integration/security/survey_whatsapp_integration_groups.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data noupdate="0">
<!--Access group for whatsapp configuration and messaging-->
<record id="survey_whatsapp_integration_group_user" model="res.groups">
<field name="name">Whatsapp Messaging</field>
</record>
</data>
</odoo>

BIN
survey_whatsapp_integration/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
survey_whatsapp_integration/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
survey_whatsapp_integration/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
survey_whatsapp_integration/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
survey_whatsapp_integration/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
survey_whatsapp_integration/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
survey_whatsapp_integration/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
survey_whatsapp_integration/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
survey_whatsapp_integration/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
survey_whatsapp_integration/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
survey_whatsapp_integration/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
survey_whatsapp_integration/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
survey_whatsapp_integration/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
survey_whatsapp_integration/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
survey_whatsapp_integration/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
survey_whatsapp_integration/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
survey_whatsapp_integration/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
survey_whatsapp_integration/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
survey_whatsapp_integration/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
survey_whatsapp_integration/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
survey_whatsapp_integration/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
survey_whatsapp_integration/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
survey_whatsapp_integration/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
survey_whatsapp_integration/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
survey_whatsapp_integration/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
survey_whatsapp_integration/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
survey_whatsapp_integration/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1024 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

BIN
survey_whatsapp_integration/static/description/assets/screenshots/wp_9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

BIN
survey_whatsapp_integration/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
survey_whatsapp_integration/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

588
survey_whatsapp_integration/static/description/index.html

@ -0,0 +1,588 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" />
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Survey Whatsapp Integration</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
This module helps to share survey link to customers through whatsapp.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;" />
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Overview
</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This module helps to share survey link to customers by clicking whatsapp button in survey module.</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features
</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community and Enterprise Support</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Share survey link to multiple customers
</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Create an account in https://panel.apichat.io/app/accounts.Then take token and instance.
</p>
<img src="assets/screenshots/wp_0.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Enable Whatsapp User in settings.
</p>
<img src="assets/screenshots/wp_-1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Choose whatsapp configuration.
</p>
<img src="assets/screenshots/wp_1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Create a new whatsapp QR code for login by giving instance and token.
</p>
<img src="assets/screenshots/wp_3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
After scanning QR code from mobile save it.
</p>
<img src="assets/screenshots/wp_4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
In survey module click on whatsapp button.
</p>
<img src="assets/screenshots/wp_5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
After giving recipients and deadline click on send button.
</p>
<img src="assets/screenshots/wp_6.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
In whatsapp can see the messages send to recipients.
</p>
<img src="assets/screenshots/wp_9.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
You can see all messages sent through WhatsApp in the WhatsApp menu.
</p>
<img src="assets/screenshots/wp_10.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding:30px">
<div class="carousel-item" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_redirect/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/survey_question_duplicator/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_mail_messaging/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_chat_layout/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_floating_whatsapp_icon/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/email_id_validation/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i class="fa fa-chevron-left"
style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!--END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" />
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help? Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" />
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31" style="width:144px; height: 31px; margin-top: 40px;" />
</div>
</div>
</div>

39
survey_whatsapp_integration/views/configuration_manager_views.xml

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--View configuration manager list view-->
<record id="configuration_manager_view_list" model="ir.ui.view">
<field name="name">configuration.manager.view.tree</field>
<field name="model">configuration.manager</field>
<field name="arch" type="xml">
<tree>
<field name="instance"/>
<field name="token"/>
</tree>
</field>
</record>
<!--View configuration manager form view-->
<record id="configuration_manager_view_form" model="ir.ui.view">
<field name="name">configuration.manager.view.form</field>
<field name="model">configuration.manager</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="instance"/>
<field name="token"/>
<button name="action_authenticate" type="object"
class="oe_highlight" string="Authenticate"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!--Action for view configuration manager list and form view-->
<record id="configuration_manager_action" model="ir.actions.act_window">
<field name="name">Configuration Manager</field>
<field name="res_model">configuration.manager</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>

22
survey_whatsapp_integration/views/survey_survey_views.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--Survey view form-->
<record id="survey_survey_view_form" model="ir.ui.view">
<field name="name">
survey.survey.view.form.inherit.survey.whatsapp.integration
</field>
<field name="model">survey.survey</field>
<field name="inherit_id" ref="survey.survey_survey_view_form"/>
<field name="arch" type="xml">
<xpath expr="//form//header">
<header>
<button type="object" name="action_whatsapp_send"
groups="survey_whatsapp_integration.survey_whatsapp_integration_group_user">
<i class="fa fa-whatsapp"
style="font-size:38px;color:green"/>
</button>
</header>
</xpath>
</field>
</record>
</odoo>

10
survey_whatsapp_integration/views/survey_whatsapp_integration_menu.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Menu for Whatsapp Configuration-->
<menuitem name="Whatsapp Configurator" id="menu_qr_whatsapp_messaging_root"
action="configuration_manager_action"
web_icon="survey_whatsapp_integration,static/description/icon.png"/>
<menuitem name="Whatsapp Message" id="menu_whatsapp_sent"
action="whatsapp_message_action"
parent="survey.menu_surveys"/>
</odoo>

22
survey_whatsapp_integration/views/whatsapp_message_views.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--Action for view whatsapp message tree view-->
<record id="whatsapp_message_action" model="ir.actions.act_window">
<field name="name">Whatsapp Message</field>
<field name="res_model">whatsapp.message</field>
<field name="view_mode">tree</field>
</record>
<!--Whatsapp message list view-->
<record id="whatsapp_message_view_list" model="ir.ui.view">
<field name="name">whatsapp.message.view.list</field>
<field name="model">whatsapp.message</field>
<field name="arch" type="xml">
<tree create="false">
<field name="from_user"/>
<field name="to_user"/>
<field name="body"/>
<field name="status"/>
</tree>
</field>
</record>
</odoo>

23
survey_whatsapp_integration/wizard/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import survey_whatsapp
from . import whatsapp_authenticate

93
survey_whatsapp_integration/wizard/survey_whatsapp.py

@ -0,0 +1,93 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
import requests
from requests.exceptions import RequestException
import werkzeug
from odoo import api, fields, models
class SurveyWhatsapp(models.TransientModel):
""" Share content to multiple whatsapp number."""
_name = 'survey.whatsapp'
_description = "Survey Whatsapp"
partner_ids = fields.Many2many('res.partner',
string="Recipient",
required=True,
help="Recipients for whatsapp message")
message = fields.Text(string="Message",
default="Dear Participants..We are conducting a"
"survey and your respond would be"
"appreciable.Please answer the following"
"survey",
required=True,
help="Message body for whatsapp message")
survey_start_url = fields.Char('Survey URL',
compute='_compute_survey_start_url',
required=True,
help="Url for starting survey")
answer_dead_line = fields.Date(string="Answer Dead Line",
required=True,
help="Deadline for getting answer")
survey_id = fields.Many2one('survey.survey',
string='Survey',
required=True,
help="Survey name")
@api.depends('survey_id')
def _compute_survey_start_url(self):
"""Automatically fill url of survey"""
for invite in self:
invite.survey_start_url = werkzeug.urls.url_join(
invite.survey_id.get_base_url(),
invite.survey_id.get_start_url()) if invite.survey_id else False
def action_send_msg(self):
"""Send content to whatsapp number."""
for partner in self.partner_ids:
if self.message and partner.mobile:
instant = self.env['configuration.manager'].search(
[('state', '=', 'verified')], limit=1)
if instant:
url = "https://api.apichat.io/instance" + instant.instance + "/sendMessage?token=" + instant.token
sent_message = self.message + " " + self.survey_start_url + " " + 'before' + " " + str(
self.answer_dead_line)
data = {
"phone": int(
partner.mobile.replace('-', '').replace('(',
"").replace(
')', '').replace(' ', '')),
"body": sent_message
}
try:
response = requests.post(url, json=data, timeout=30)
response.raise_for_status()
except RequestException as e:
return {'status': 'error', 'message': str(e)}
else:
self.env['whatsapp.message'].create({
'status': 'sent',
'from_user': self.env.user.id,
'to_user': partner.mobile,
'body': sent_message
})

26
survey_whatsapp_integration/wizard/survey_whatsapp_views.xml

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--Survey whatsapp form view-->
<record id="survey_whatsapp_view_form" model="ir.ui.view">
<field name="name">survey.whatsapp.view.form</field>
<field name="model">survey.whatsapp</field>
<field name="arch" type="xml">
<form string="Whatsapp Share">
<group>
<field name="survey_id"/>
<field name="partner_ids" widget="many2many_tags"/>
<field name="survey_start_url"/>
<field name="message" widget="text"/>
</group>
<group>
<field name="answer_dead_line"/>
</group>
<footer>
<button name="action_send_msg" string="Send" type="object"/>
<button string="Cancel" class="btn-secondary"
special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</odoo>

63
survey_whatsapp_integration/wizard/whatsapp_authenticate.py

@ -0,0 +1,63 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Farhana Jahan PT(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
import requests
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
class WhatsappAuthenticate(models.TransientModel):
"""Create a new model"""
_name = 'whatsapp.authenticate'
_description = 'Whatsapp Authentication Wizard'
qrcode = fields.Binary(attachment=False, string="Qr Code",
help="QR code for scanning")
configuration_manager_id = fields.Many2one("configuration.manager",
string="Configuration Manager",
help="configuration manager"
"details")
@api.constrains('config_manager_id')
def _check_active(self):
"""check the scanned number is active or not."""
url = "https://api.apichat.io/v1/status"
headers = {
"client-id": self.configuration_manager_id.instance,
"token": self.configuration_manager_id.token
}
req = requests.get(url, headers=headers, timeout=10)
if 'is_connected' in req.json().keys():
if req.json()['is_connected']:
self.configuration_manager_id.state = "verified"
else:
raise ValidationError(
_("Please scan and connect your whatsapp web"))
if self.configuration_manager_id.state != "verified":
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'message': 'Check The Connection',
'type': 'danger',
'sticky': False,
}
}

20
survey_whatsapp_integration/wizard/whatsapp_authenticate_views.xml

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--Whatsapp authenticate form view-->
<record id="whatsapp_authenticate_view_form" model="ir.ui.view">
<field name="name">whatsapp.authenticate.view.form</field>
<field name="model">whatsapp.authenticate</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="qrcode" readonly="True"
widget="image"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
</odoo>
Loading…
Cancel
Save