Browse Source

Oct 26 : [ADD] Initial Commit 'odoo_google_meet_integration'

pull/254/merge
RisvanaCybro 2 years ago
parent
commit
790a4e2a60
  1. 47
      odoo_google_meet_integration/README.rst
  2. 23
      odoo_google_meet_integration/__init__.py
  3. 47
      odoo_google_meet_integration/__manifest__.py
  4. 22
      odoo_google_meet_integration/controllers/__init__.py
  5. 65
      odoo_google_meet_integration/controllers/odoo_google_meet_integration.py
  6. 6
      odoo_google_meet_integration/doc/RELEASE_NOTES.md
  7. 23
      odoo_google_meet_integration/models/__init__.py
  8. 163
      odoo_google_meet_integration/models/calendar_event.py
  9. 99
      odoo_google_meet_integration/models/res_company.py
  10. BIN
      odoo_google_meet_integration/static/description/assets/icons/check.png
  11. BIN
      odoo_google_meet_integration/static/description/assets/icons/chevron.png
  12. BIN
      odoo_google_meet_integration/static/description/assets/icons/cogs.png
  13. BIN
      odoo_google_meet_integration/static/description/assets/icons/consultation.png
  14. BIN
      odoo_google_meet_integration/static/description/assets/icons/ecom-black.png
  15. BIN
      odoo_google_meet_integration/static/description/assets/icons/education-black.png
  16. BIN
      odoo_google_meet_integration/static/description/assets/icons/hotel-black.png
  17. BIN
      odoo_google_meet_integration/static/description/assets/icons/license.png
  18. BIN
      odoo_google_meet_integration/static/description/assets/icons/lifebuoy.png
  19. BIN
      odoo_google_meet_integration/static/description/assets/icons/manufacturing-black.png
  20. BIN
      odoo_google_meet_integration/static/description/assets/icons/pos-black.png
  21. BIN
      odoo_google_meet_integration/static/description/assets/icons/puzzle.png
  22. BIN
      odoo_google_meet_integration/static/description/assets/icons/restaurant-black.png
  23. BIN
      odoo_google_meet_integration/static/description/assets/icons/service-black.png
  24. BIN
      odoo_google_meet_integration/static/description/assets/icons/trading-black.png
  25. BIN
      odoo_google_meet_integration/static/description/assets/icons/training.png
  26. BIN
      odoo_google_meet_integration/static/description/assets/icons/update.png
  27. BIN
      odoo_google_meet_integration/static/description/assets/icons/user.png
  28. BIN
      odoo_google_meet_integration/static/description/assets/icons/wrench.png
  29. BIN
      odoo_google_meet_integration/static/description/assets/misc/categories.png
  30. BIN
      odoo_google_meet_integration/static/description/assets/misc/check-box.png
  31. BIN
      odoo_google_meet_integration/static/description/assets/misc/compass.png
  32. BIN
      odoo_google_meet_integration/static/description/assets/misc/corporate.png
  33. BIN
      odoo_google_meet_integration/static/description/assets/misc/customer-support.png
  34. BIN
      odoo_google_meet_integration/static/description/assets/misc/cybrosys-logo.png
  35. BIN
      odoo_google_meet_integration/static/description/assets/misc/features.png
  36. BIN
      odoo_google_meet_integration/static/description/assets/misc/logo.png
  37. BIN
      odoo_google_meet_integration/static/description/assets/misc/pictures.png
  38. BIN
      odoo_google_meet_integration/static/description/assets/misc/pie-chart.png
  39. BIN
      odoo_google_meet_integration/static/description/assets/misc/right-arrow.png
  40. BIN
      odoo_google_meet_integration/static/description/assets/misc/star.png
  41. BIN
      odoo_google_meet_integration/static/description/assets/misc/support.png
  42. BIN
      odoo_google_meet_integration/static/description/assets/misc/whatsapp.png
  43. BIN
      odoo_google_meet_integration/static/description/assets/modules/1.png
  44. BIN
      odoo_google_meet_integration/static/description/assets/modules/live_chat.png
  45. BIN
      odoo_google_meet_integration/static/description/assets/modules/slack.png
  46. BIN
      odoo_google_meet_integration/static/description/assets/modules/twitter.png
  47. BIN
      odoo_google_meet_integration/static/description/assets/modules/whatsapp.gif
  48. BIN
      odoo_google_meet_integration/static/description/assets/modules/zoom_meet.jpg
  49. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/12.1.png
  50. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/a1.png
  51. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/a2.2.png
  52. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/a2.png
  53. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/a3.png
  54. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/a66.png
  55. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/a77.png
  56. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/a8.png
  57. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_12.png
  58. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_13.png
  59. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_15.png
  60. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_16.png
  61. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_17.png
  62. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_18.png
  63. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_19.png
  64. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_2.png
  65. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_20.png
  66. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_3.png
  67. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_4.png
  68. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_5.png
  69. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_6.png
  70. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_7.png
  71. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_8.png
  72. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/google_meet_9.png
  73. BIN
      odoo_google_meet_integration/static/description/assets/screenshots/hero.gif
  74. BIN
      odoo_google_meet_integration/static/description/banner.jpg
  75. BIN
      odoo_google_meet_integration/static/description/icon.png
  76. 904
      odoo_google_meet_integration/static/description/index.html
  77. 46
      odoo_google_meet_integration/views/calendar_event_views.xml
  78. 45
      odoo_google_meet_integration/views/res_company_views.xml

47
odoo_google_meet_integration/README.rst

@ -0,0 +1,47 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Google Meet Calendar Integration
================================
Google Meet Calendar Integration module for Odoo Calender Module .
Installation
============
- www.odoo.com/documentation/15.0/setup/install.html
- Install our custom addon
License
-------
General Public License, Version 3 (LGPL v3).
( https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developer: (V15) - 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 https://www.cybrosys.com
Further information
===================
HTML Description: `<static/description/index.html>`__

23
odoo_google_meet_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: 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import controllers
from . import models

47
odoo_google_meet_integration/__manifest__.py

@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': "Google Meet Calendar Integration",
'version': '15.0.1.0.0',
"category": 'Extra Tools ',
'summary': """Odoo module for Integrating Google Meet with the
Calendar.""",
'description': """This module integrates Google Meet with the Odoo
calendar functionality. It allows users to create Google Meet URLs and
associate them with calendar events. With this integration, users can
easily join Google Meet meetings directly from their calendar
events in Odoo.""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['contacts', 'calendar'],
'data': [
'views/res_company_views.xml',
'views/calendar_event_views.xml'
],
'images': ['static/description/banner.jpg'],
'license': "LGPL-3",
'installable': True,
'auto_install': False,
'application': False
}

22
odoo_google_meet_integration/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import odoo_google_meet_integration

65
odoo_google_meet_integration/controllers/odoo_google_meet_integration.py

@ -0,0 +1,65 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
import datetime
import requests
from odoo import http, _
from odoo.exceptions import UserError
from odoo.http import request
class GoogleMeetAuth(http.Controller):
"""Controller for Google Meet authentication. """
@http.route('/google_meet_authentication', type="http",
auth="public", website=True)
def get_auth_code(self, **kw):
""" Get the authentication code for Google Meet"""
company_id = http.request.env['res.users'].sudo().browse(
request.uid).company_id
if kw.get('code'):
company_id.write(
{'company_authorization_code': kw.get('code')})
data = {
'code': kw.get('code'),
'client_id': company_id.client,
'client_secret': company_id.client_secret,
'redirect_uri': company_id.redirect_uri,
'grant_type': 'authorization_code'
}
response = requests.post(
'https://accounts.google.com/o/oauth2/token', data=data,
headers={
'content-type': 'application/x-www-form-urlencoded'})
if response.json() and response.json().get('access_token'):
company_id.write({
'company_access_token':
response.json().get('access_token'),
'company_access_token_expiry':
datetime.datetime.now() + datetime.timedelta(
seconds=response.json().get('expires_in')),
'company_refresh_token':
response.json().get('access_token'),
})
return "Authentication Success. You Can Close this window"
else:
raise UserError(
_('Something went wrong during the token generation.'
'Maybe your Authorization Code is invalid'))

6
odoo_google_meet_integration/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <odoo_google_meet_integration>
#### 25.09.2023
#### Version 15.0.1.0.0
#### ADD
- Initial commit for Google Meet Calendar Integration

23
odoo_google_meet_integration/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import calendar_event
from . import res_company

163
odoo_google_meet_integration/models/calendar_event.py

@ -0,0 +1,163 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
import json
import pytz
import random
import requests
from datetime import timedelta
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
TIMEOUT = 20
class CalendarEvent(models.Model):
""" Model for calendar events with Google Meet integration."""
_inherit = 'calendar.event'
is_google_meet = fields.Boolean(string='Google Meet',
help='Specify whether Google Meet is '
'enabled or not.')
google_meet_url = fields.Char(string='Google Meet URL',
help='Joining Meeting URL')
google_meet_code = fields.Char(string='Google Meet Code',
help='Joining Meeting Code')
google_event = fields.Char(string='Google Event ID',
help='Event ID of the Google Meet')
def action_google_meet_url(self):
"""Generate an action to open the Google Meet URL."""
url = self.google_meet_url if self.google_meet_url \
else 'https://meet.google.com/'
return {
'type': 'ir.actions.act_url',
'target': 'new',
'url': url,
}
@api.model_create_multi
def create(self, vals_list):
"""Override create method to create Google Meet events."""
events = super(CalendarEvent, self).create(vals_list)
google_meet_events = events.filtered(
lambda event: event.is_google_meet)
self._create_google_meet(google_meet_events)
return events
def write(self, vals):
"""Override write method to update Google Meet events."""
google_meet_events = self.filtered(
lambda event: event.is_google_meet and not event.google_event)
result = super(CalendarEvent, google_meet_events).write(vals)
self._create_google_meet(google_meet_events)
return result
def _create_google_meet(self, cal_event):
for event in cal_event:
start_dt = fields.Datetime.from_string(event.start)
finish_dt = start_dt.replace(tzinfo=pytz.timezone('UTC'))
end_date_user = finish_dt.astimezone(pytz.timezone(
self.env.user.tz or 'UTC')).replace(tzinfo=None)
difference = relativedelta(end_date_user, start_dt)
start_dt_adjusted = start_dt + timedelta(hours=difference.hours,
minutes=difference.minutes)
start_date = start_dt_adjusted.isoformat()
stop_dt_adjusted = start_dt_adjusted + timedelta(
hours=difference.hours,
minutes=difference.minutes)
user_id = self.env['res.users'].browse(self._context.get('uid'))
company_id = user_id.company_id
chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
request_id = ''.join(random.SystemRandom().choice(chars)
for i in range(16))
url = ('https://www.googleapis.com/calendar/v3/calendars/primary/'
'events?conferenceDataVersion=1&sendNotifications=True')
header = {
'Authorization': 'Bearer %s' % company_id.company_access_token,
'Accept': 'application/json',
'Content-Type': 'application/json'
}
event_data = {
'summary': event.name,
'location': event.location or None,
'description': event.description,
'conferenceDataVersion': 1,
'start': {
'dateTime': start_date,
'timeZone': user_id.tz,
},
'end': {
'dateTime': stop_dt_adjusted.isoformat(),
'timeZone': user_id.tz,
},
'recurrence': [],
'attendees': [{'email': partner.email} for partner in
event.partner_ids],
'conferenceData': {
"createRequest": {
"conferenceSolutionKey": {
"type": "hangoutsMeet"
},
'requestId': request_id
}
},
}
result = requests.post(url, headers=header, timeout=TIMEOUT,
data=json.dumps(event_data)).json()
if result.get('error'):
company_id.google_meet_company_refresh_token()
result = requests.post(url, headers=header, timeout=TIMEOUT,
data=json.dumps(event_data)).json()
if result.get('hangoutLink'):
event.google_event = result['id']
event.google_meet_url = result['hangoutLink']
event.google_meet_code = result['conferenceData'][
'conferenceId']
else:
raise ValidationError(
_("Failed to create event, Please check your authorization"
"connection."))
@api.onchange("is_google_meet")
def _onchange_is_google_meet(self):
"""Create a Google Meet event."""
if self.is_google_meet:
self.is_google_meet = True
self._create_google_meet(self)
else:
self.google_meet_url = ''
self.google_meet_code = ''
self.google_event = ''
if not self.is_google_meet and self.google_event:
self.is_google_meet = True
user_id = self.env['res.users'].browse(
self._context.get('uid'))
url = 'https://www.googleapis.com/calendar/v3/calendars/' \
'primary/events/%s' % self.google_event
header = {
'Authorization':
'Bearer %s' % user_id.company_id.company_access_token}
requests.delete(url, headers=header, timeout=TIMEOUT)
self.google_meet_url = ''
self.google_meet_code = ''
self.google_event = ''

99
odoo_google_meet_integration/models/res_company.py

@ -0,0 +1,99 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
import requests
from odoo import fields, models, _
from odoo.exceptions import UserError, ValidationError
TIMEOUT = 20
class ResCompany(models.Model):
"""Model for company with Google Meet integration settings."""
_inherit = "res.company"
client = fields.Char(string="Client ID",
help='Google Developer Console Client ID')
client_secret = fields.Char(string="Client Secret",
help='Google Developer Console Client Secret')
redirect_uri = fields.Char(string="Authorized redirect URIs",
default="http://localhost:8016/"
"google_meet_authentication",
help='Google Authorized redirect URIs')
company_access_token = fields.Char(string='Access Token', copy=False,
help='The access token used for company'
' authentication.')
company_access_token_expiry = fields.Datetime(string='Token expiry',
help='The expiry date and '
'time of access token')
company_refresh_token = fields.Char(string='Refresh Token', copy=False,
help=' Refresh token used to obtain '
'a new access token when the'
' current one expires.')
company_authorization_code = fields.Char(string="Authorization Code",
help='The authorization code'
'obtained during the company'
'authentication process.')
def google_meet_company_authenticate(self):
"""Authenticate the company to access Google Meet APIs."""
if not self.client or not self.client_secret or not self.redirect_uri:
raise ValidationError(_(
"Client ID, Client Secret, and Redirect URI are required."))
calendar_scope = 'https://www.googleapis.com/auth/calendar'
calendar_event_scope = ('https://www.googleapis.com/auth/calendar.'
'events')
url = (
"https://accounts.google.com/o/oauth2/v2/auth?response_type=code"
"&access_type=offline&client_id={}&redirect_uri={}&scope={}+{} "
).format(self.client, self.redirect_uri, calendar_scope,
calendar_event_scope)
return {
"type": 'ir.actions.act_url',
"url": url,
"target": "new"
}
def google_meet_company_refresh_token(self):
"""Refresh the access token for the company."""
if not all(
[self.client, self.client_secret, self.company_refresh_token]):
raise UserError(
_('Client ID, Client Secret, and Refresh Token are required.'))
data = {
'client_id': self.client,
'client_secret': self.client_secret,
'refresh_token': self.company_refresh_token,
'grant_type': 'refresh_token',
}
response = requests.post(
'https://accounts.google.com/o/oauth2/token', data=data,
headers={
'content-type': 'application/x-www-form-urlencoded'},
timeout=TIMEOUT)
if response.ok and response.json().get('access_token'):
self.write({
'company_access_token': response.json().get('access_token'),
})
else:
raise UserError(
_('Something went wrong during the token generation. '
'Please request a new authorization code.'))

BIN
odoo_google_meet_integration/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
odoo_google_meet_integration/static/description/assets/modules/live_chat.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
odoo_google_meet_integration/static/description/assets/modules/slack.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
odoo_google_meet_integration/static/description/assets/modules/twitter.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
odoo_google_meet_integration/static/description/assets/modules/whatsapp.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
odoo_google_meet_integration/static/description/assets/modules/zoom_meet.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/12.1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/a1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/a2.2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/a2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/a3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/a66.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/a77.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/a8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_20.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
odoo_google_meet_integration/static/description/assets/screenshots/google_meet_9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

BIN
odoo_google_meet_integration/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
odoo_google_meet_integration/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

904
odoo_google_meet_integration/static/description/index.html

@ -0,0 +1,904 @@
<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: #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>Enterprise
</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>Odoo.sh
</div>
</div>
</div>
<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;">
Google Meet Calendar Integration </h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Google Meet Calendar Integration Module for Odoo Calender
Module</p>
<!-- END OF APP HERO -->
<img src="./assets/screenshots/hero.gif" class="img-responsive"
width="100%" height="auto"/>
</div>
</div>
</div>
</div>
<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="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right"
style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features"
style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right"
style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#configuration"
style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Configuration</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View Configuration for this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right"
style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots"
style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right"
style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div id="overview">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.6rem !important; line-height: 30px !important;">
The Google Meeting Calendar Module helps you to Create a
Google
Meets/Hangouts from Odoo Calendar.</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Create Google Meetings from Odoo Calendar</h4>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Send a Google Meeting Invitation Email to Event
Attendees</h4>
</div>
</div>
</div>
<div id="configuration">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Configuration
</h2>
</div>
<div class="col-lg-12 my-2">
<h2 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.7rem !important;">
Steps to Set Up in Google</h2>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Sign in with your Google Account. To Generate Google
Calendar
API Credentials, go to Google API platform
<br/>
&nbsp;&nbsp;&nbsp;&nbsp; <a
href="https://console.cloud.google.com/apis/dashboard">https://console.cloud.google.com/apis/dashboard</a>
</p>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Google Calendar Client Credential and API Configuration
</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
User have to create a NEW PROJECT from Google Cloud
Platform</p>
<img src="assets/screenshots/a1.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Add a Project name and click on "CREATE" button</p>
<img src="assets/screenshots/a2.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
User have to navigate to "APIs and services" and click on
"Enabled APIs and services".
</p>
<img src="assets/screenshots/a2.2.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Then click on "ENABLE APIS AND SERVICES".
</p>
<img src="assets/screenshots/a3.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Search For Google Calendar API
</h4>
<img src="assets/screenshots/google_meet_2.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Enable Google Calendar API
</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Search for "Google Calendar API", Open and click "ENABLE"
to
use.
</p>
<img src="assets/screenshots/google_meet_3.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
CREATE CREDENTIALS
</h4>
<img src="assets/screenshots/google_meet_4.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Create Credentials for Google Calendar API</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Select "Google Calendar API" as API and "User data" as data
accessing and click "NEXT"
</p>
<img src="assets/screenshots/google_meet_5.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Create App Information.
</p>
<img src="assets/screenshots/google_meet_6.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Skip the Scopes
</p>
<img src="assets/screenshots/google_meet_7.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Select "Web application" as Application type and enter
Name,
Click "Add URL" under "Authorized redirect
URIs" and enter your URI.
</p>
<img src="assets/screenshots/google_meet_8.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<img src="assets/screenshots/google_meet_9.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Authorized redirect URl is "http://localhost:8016".User
need to
change "http://localhost:8016" by
his/her odoo instance. and give <b>/google_meet_authentication</b>
at last of the Authorized redirect URl.
</p>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Google Calendar API Credential
</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
On clicking "CREATE" button user will get "Client ID" and
"Client secret" key for Google Calendar Api.
</p>
<img src="assets/screenshots/a8.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Create API KEY
</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
On clicking "CREATE CREDENTIALS" button , Select API Key.
</p>
<img src="assets/screenshots/a66.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Publish App
</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
On clicking "OAUTH Consent Screen" button , Click PUBLISH APP
</p>
<img src="assets/screenshots/a77.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div id="screenshots">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Go to Settings-> Google Calendar. Add Client ID and Client
Secret , Then save.
<br/>
</p>
<img src="assets/screenshots/12.1.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Go to Settings-> Users & Companies
Then click on the Company name and select the Google
Meeting
tab.
Enter the Client ID, Client Secret and Authorized redirect URIs
in
Credentials.
<br/>
After entering all the details click on AUTHENTICATE.
</p>
<img src="assets/screenshots/google_meet_12.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
After successful Authentication, now you can create Google
Meetings to your Odoo Calendar.
</p>
<img src="assets/screenshots/google_meet_13.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
When the Google Meet checkbox is enabled, A Google meeting
link
is generated.
</p>
<img src="assets/screenshots/google_meet_15.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
By clicking the JOIN MEETING Button, you can also join a
Google
Meeting.
</p>
<img src="assets/screenshots/google_meet_16.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
After you've created the meeting, you can view it in Google
Calendar.
</p>
<img src="assets/screenshots/google_meet_17.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Email the meeting information to all event participants
</p>
<img src="assets/screenshots/google_meet_18.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Disable the Google Meet checkbox to delete the meeting.
</p>
<img src="assets/screenshots/google_meet_19.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1.3rem !important;">
From Google Calendar also, the Meeting has been removed.
</p>
<img src="assets/screenshots/google_meet_20.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
<div id="demo1" class="row carousel slide"
data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active"
style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/odoo_zoom_meet_integration/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/zoom_meet.jpg">
</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/15.0/whatsapp_mail_messaging/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/whatsapp.gif">
</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/15.0/recruitment_twitter/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/twitter.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/integration_whatsapp_chat_live/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/live_chat.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/15.0/odoo_slack_connector/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/slack.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/15.0/hr_zk_attendance/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/1.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1"
data-slide="prev"
style="left:-25px;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="right:-25px;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 SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</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: #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>
</section>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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>
</section>
<!-- END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12"
style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-6">
<a href="mailto:odoo@cybrosys.com" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-6">
<a href="https://api.whatsapp.com/send?phone=918606827707"
target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-whatsapp mr-2"></i>+91 86068
27707</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row"
style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center"
style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png"
width="200px" height="auto"/>
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

46
odoo_google_meet_integration/views/calendar_event_views.xml

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- This view extends the default calendar event form view and
adds Google Meet integration. -->
<record id="view_calendar_event_form" model="ir.ui.view">
<field name="name">
calendar.event.view.form.inherit.odoo.google.meet.integration
</field>
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='categ_ids']" position="after">
<field name="is_google_meet" widget="boolean_toggle"/>
</xpath>
<xpath expr="//notebook" position="inside">
<page name="users_google_meet_integration"
string="Google Meet">
<group>
<group>
<field name="google_meet_url"
placeholder="https://meet.google.com....."
widget="CopyClipboardChar" readonly="0"
class="mb-3 pl-3"/>
</group>
<group>
<button name="action_google_meet_url"
string="Join Meeting" type="object"
class="btn-primary"
style="margin-left: 200px;margin-top: -5px;"/>
</group>
</group>
<group>
<group>
<field name="google_meet_code"
widget="CopyClipboardChar" readonly="0"
class="mb-3 pl-3"/>
</group>
<group>
<field name="google_event" invisible="1"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
</odoo>

45
odoo_google_meet_integration/views/res_company_views.xml

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- This view extends the default company form view and
adds Google Meet integration configuration. -->
<record id="view_company_form" model="ir.ui.view">
<field name="name">
res.company.view.form.inherit.odoo.google.meet.integration
</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[1]" position="after">
<page string="Google Meet">
<separator name="configuration"
string="Google Meet Configuration"/>
<notebook>
<page name="credentials" string="Credentials">
<group>
<field name="client"/>
<field name="client_secret"/>
<field name="redirect_uri"/>
</group>
<group>
<button string="Authenticate" type="object"
name="google_meet_company_authenticate"
class="oe_highlight"/>
<button string="Refresh Token" type="object"
name="google_meet_company_refresh_token"
class="oe_highlight"/>
</group>
</page>
<page name="authentication" string="Authentication">
<group>
<field name="company_access_token"/>
<field name="company_access_token_expiry"/>
<field name="company_refresh_token"/>
<field name="company_authorization_code"/>
</group>
</page>
</notebook>
</page>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save