diff --git a/odoo_google_meet_integration/README.rst b/odoo_google_meet_integration/README.rst new file mode 100644 index 000000000..d37b1ae91 --- /dev/null +++ b/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 `__ + +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: ``__ diff --git a/odoo_google_meet_integration/__init__.py b/odoo_google_meet_integration/__init__.py new file mode 100644 index 000000000..17ca940be --- /dev/null +++ b/odoo_google_meet_integration/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import controllers +from . import models diff --git a/odoo_google_meet_integration/__manifest__.py b/odoo_google_meet_integration/__manifest__.py new file mode 100644 index 000000000..1984474f9 --- /dev/null +++ b/odoo_google_meet_integration/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': "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 +} diff --git a/odoo_google_meet_integration/controllers/__init__.py b/odoo_google_meet_integration/controllers/__init__.py new file mode 100644 index 000000000..50977d004 --- /dev/null +++ b/odoo_google_meet_integration/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import odoo_google_meet_integration diff --git a/odoo_google_meet_integration/controllers/odoo_google_meet_integration.py b/odoo_google_meet_integration/controllers/odoo_google_meet_integration.py new file mode 100644 index 000000000..b290d172b --- /dev/null +++ b/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() +# 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 . +# +############################################################################# +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')) diff --git a/odoo_google_meet_integration/doc/RELEASE_NOTES.md b/odoo_google_meet_integration/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..3d27ed01e --- /dev/null +++ b/odoo_google_meet_integration/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 25.09.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Google Meet Calendar Integration diff --git a/odoo_google_meet_integration/models/__init__.py b/odoo_google_meet_integration/models/__init__.py new file mode 100644 index 000000000..9aeeb7b59 --- /dev/null +++ b/odoo_google_meet_integration/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana jabin MP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import calendar_event +from . import res_company diff --git a/odoo_google_meet_integration/models/calendar_event.py b/odoo_google_meet_integration/models/calendar_event.py new file mode 100644 index 000000000..a9ce942b0 --- /dev/null +++ b/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() +# 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 . +# +############################################################################# +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 = '' diff --git a/odoo_google_meet_integration/models/res_company.py b/odoo_google_meet_integration/models/res_company.py new file mode 100644 index 000000000..211b078ea --- /dev/null +++ b/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() +# 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 . +# +############################################################################## +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.')) diff --git a/odoo_google_meet_integration/static/description/assets/icons/check.png b/odoo_google_meet_integration/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/check.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/chevron.png b/odoo_google_meet_integration/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/chevron.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/cogs.png b/odoo_google_meet_integration/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/cogs.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/consultation.png b/odoo_google_meet_integration/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/consultation.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/ecom-black.png b/odoo_google_meet_integration/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/ecom-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/education-black.png b/odoo_google_meet_integration/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/education-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/hotel-black.png b/odoo_google_meet_integration/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/hotel-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/license.png b/odoo_google_meet_integration/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/license.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/lifebuoy.png b/odoo_google_meet_integration/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/lifebuoy.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/manufacturing-black.png b/odoo_google_meet_integration/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/manufacturing-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/pos-black.png b/odoo_google_meet_integration/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/pos-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/puzzle.png b/odoo_google_meet_integration/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/puzzle.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/restaurant-black.png b/odoo_google_meet_integration/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/restaurant-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/service-black.png b/odoo_google_meet_integration/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/service-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/trading-black.png b/odoo_google_meet_integration/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/trading-black.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/training.png b/odoo_google_meet_integration/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/training.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/update.png b/odoo_google_meet_integration/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/update.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/user.png b/odoo_google_meet_integration/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/user.png differ diff --git a/odoo_google_meet_integration/static/description/assets/icons/wrench.png b/odoo_google_meet_integration/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/icons/wrench.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/categories.png b/odoo_google_meet_integration/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/categories.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/check-box.png b/odoo_google_meet_integration/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/check-box.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/compass.png b/odoo_google_meet_integration/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/compass.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/corporate.png b/odoo_google_meet_integration/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/corporate.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/customer-support.png b/odoo_google_meet_integration/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/customer-support.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/cybrosys-logo.png b/odoo_google_meet_integration/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/cybrosys-logo.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/features.png b/odoo_google_meet_integration/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/features.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/logo.png b/odoo_google_meet_integration/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/logo.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/pictures.png b/odoo_google_meet_integration/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/pictures.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/pie-chart.png b/odoo_google_meet_integration/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/pie-chart.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/right-arrow.png b/odoo_google_meet_integration/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/right-arrow.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/star.png b/odoo_google_meet_integration/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/star.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/support.png b/odoo_google_meet_integration/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/support.png differ diff --git a/odoo_google_meet_integration/static/description/assets/misc/whatsapp.png b/odoo_google_meet_integration/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/misc/whatsapp.png differ diff --git a/odoo_google_meet_integration/static/description/assets/modules/1.png b/odoo_google_meet_integration/static/description/assets/modules/1.png new file mode 100644 index 000000000..a0969fcb5 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/modules/1.png differ diff --git a/odoo_google_meet_integration/static/description/assets/modules/live_chat.png b/odoo_google_meet_integration/static/description/assets/modules/live_chat.png new file mode 100644 index 000000000..3664700f5 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/modules/live_chat.png differ diff --git a/odoo_google_meet_integration/static/description/assets/modules/slack.png b/odoo_google_meet_integration/static/description/assets/modules/slack.png new file mode 100644 index 000000000..92ae36dc5 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/modules/slack.png differ diff --git a/odoo_google_meet_integration/static/description/assets/modules/twitter.png b/odoo_google_meet_integration/static/description/assets/modules/twitter.png new file mode 100644 index 000000000..ee4fa9abd Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/modules/twitter.png differ diff --git a/odoo_google_meet_integration/static/description/assets/modules/whatsapp.gif b/odoo_google_meet_integration/static/description/assets/modules/whatsapp.gif new file mode 100644 index 000000000..c51b9eb07 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/modules/whatsapp.gif differ diff --git a/odoo_google_meet_integration/static/description/assets/modules/zoom_meet.jpg b/odoo_google_meet_integration/static/description/assets/modules/zoom_meet.jpg new file mode 100644 index 000000000..ae7760bd2 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/modules/zoom_meet.jpg differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/12.1.png b/odoo_google_meet_integration/static/description/assets/screenshots/12.1.png new file mode 100644 index 000000000..1bc4a3e61 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/12.1.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/a1.png b/odoo_google_meet_integration/static/description/assets/screenshots/a1.png new file mode 100644 index 000000000..1991e013c Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/a1.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/a2.2.png b/odoo_google_meet_integration/static/description/assets/screenshots/a2.2.png new file mode 100644 index 000000000..002e478dd Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/a2.2.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/a2.png b/odoo_google_meet_integration/static/description/assets/screenshots/a2.png new file mode 100644 index 000000000..df4c54d4b Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/a2.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/a3.png b/odoo_google_meet_integration/static/description/assets/screenshots/a3.png new file mode 100644 index 000000000..cfdd18ff8 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/a3.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/a66.png b/odoo_google_meet_integration/static/description/assets/screenshots/a66.png new file mode 100644 index 000000000..cd8009f22 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/a66.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/a77.png b/odoo_google_meet_integration/static/description/assets/screenshots/a77.png new file mode 100644 index 000000000..cdd04171f Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/a77.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/a8.png b/odoo_google_meet_integration/static/description/assets/screenshots/a8.png new file mode 100644 index 000000000..04613cff2 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/a8.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_12.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_12.png new file mode 100644 index 000000000..bceb57cda Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_12.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_13.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_13.png new file mode 100644 index 000000000..d787193c6 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_13.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_15.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_15.png new file mode 100644 index 000000000..ca61a5a6f Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_15.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_16.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_16.png new file mode 100644 index 000000000..dd5c79bdf Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_16.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_17.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_17.png new file mode 100644 index 000000000..fea077d81 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_17.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_18.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_18.png new file mode 100644 index 000000000..5256b1d1f Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_18.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_19.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_19.png new file mode 100644 index 000000000..d11b124be Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_19.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_2.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_2.png new file mode 100644 index 000000000..46eb9c958 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_2.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_20.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_20.png new file mode 100644 index 000000000..b514ac285 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_20.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_3.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_3.png new file mode 100644 index 000000000..5886c61cf Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_3.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_4.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_4.png new file mode 100644 index 000000000..b108a4bfd Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_4.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_5.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_5.png new file mode 100644 index 000000000..f101774a6 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_5.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_6.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_6.png new file mode 100644 index 000000000..d84984e6e Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_6.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_7.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_7.png new file mode 100644 index 000000000..c9867a931 Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_7.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_8.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_8.png new file mode 100644 index 000000000..12a34c6cf Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_8.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_9.png b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_9.png new file mode 100644 index 000000000..10e73366b Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/google_meet_9.png differ diff --git a/odoo_google_meet_integration/static/description/assets/screenshots/hero.gif b/odoo_google_meet_integration/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..fbac0069c Binary files /dev/null and b/odoo_google_meet_integration/static/description/assets/screenshots/hero.gif differ diff --git a/odoo_google_meet_integration/static/description/banner.jpg b/odoo_google_meet_integration/static/description/banner.jpg new file mode 100644 index 000000000..bd92c83d5 Binary files /dev/null and b/odoo_google_meet_integration/static/description/banner.jpg differ diff --git a/odoo_google_meet_integration/static/description/icon.png b/odoo_google_meet_integration/static/description/icon.png new file mode 100644 index 000000000..a7bc1f4cd Binary files /dev/null and b/odoo_google_meet_integration/static/description/icon.png differ diff --git a/odoo_google_meet_integration/static/description/index.html b/odoo_google_meet_integration/static/description/index.html new file mode 100644 index 000000000..5d1d17cb7 --- /dev/null +++ b/odoo_google_meet_integration/static/description/index.html @@ -0,0 +1,904 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+ +

+ Google Meet Calendar Integration

+

+ Google Meet Calendar Integration Module for Odoo Calender + Module

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

+ Explore This Module

+
+ + + + + + +
+
+

+ Overview +

+
+ +
+

+ The Google Meeting Calendar Module helps you to Create a + Google + Meets/Hangouts from Odoo Calendar.

+
+
+ +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Create Google Meetings from Odoo Calendar

+
+
+ +
+
+ +
+
+

+ Send a Google Meeting Invitation Email to Event + Attendees

+
+
+
+ + +
+
+

+ Configuration +

+
+
+

+ Steps to Set Up in Google

+

+ Sign in with your Google Account. To Generate Google + Calendar + API Credentials, go to Google API platform +
+      https://console.cloud.google.com/apis/dashboard +

+
+
+

+ Google Calendar Client Credential and API Configuration +

+

+ User have to create a NEW PROJECT from Google Cloud + Platform

+ +

+ Add a Project name and click on "CREATE" button

+ +

+ User have to navigate to "APIs and services" and click on + "Enabled APIs and services". +

+ +

+ Then click on "ENABLE APIS AND SERVICES". +

+ +
+
+

+ Search For Google Calendar API +

+ +
+ +
+

+ Enable Google Calendar API +

+

+ Search for "Google Calendar API", Open and click "ENABLE" + to + use. + +

+ +
+
+

+ CREATE CREDENTIALS +

+ +
+ +
+

+ Create Credentials for Google Calendar API

+

+ Select "Google Calendar API" as API and "User data" as data + accessing and click "NEXT" +

+ +

+ Create App Information. + +

+ +

+ Skip the Scopes +

+ +

+ Select "Web application" as Application type and enter + Name, + Click "Add URL" under "Authorized redirect + URIs" and enter your URI. + +

+ + +

+ Authorized redirect URl is "http://localhost:8016".User + need to + change "http://localhost:8016" by + his/her odoo instance. and give /google_meet_authentication + at last of the Authorized redirect URl. +

+
+
+

+ Google Calendar API Credential + +

+

+ On clicking "CREATE" button user will get "Client ID" and + "Client secret" key for Google Calendar Api. + + +

+ +
+
+

+ Create API KEY +

+

+ On clicking "CREATE CREDENTIALS" button , Select API Key. +

+ +
+
+

+ Publish App +

+

+ On clicking "OAUTH Consent Screen" button , Click PUBLISH APP +

+ +
+
+
+

+ Screenshots +

+
+
+

+ Go to Settings-> Google Calendar. Add Client ID and Client + Secret , Then save. +
+

+ +
+ +
+

+ 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. +
+ After entering all the details click on AUTHENTICATE. +

+ +
+ +
+

+ After successful Authentication, now you can create Google + Meetings to your Odoo Calendar. +

+ +
+
+

+ When the Google Meet checkbox is enabled, A Google meeting + link + is generated. +

+ +
+
+

+ By clicking the JOIN MEETING Button, you can also join a + Google + Meeting. +

+ +
+
+

+ After you've created the meeting, you can view it in Google + Calendar. +

+ +
+
+

+ Email the meeting information to all event participants +

+ +
+
+

+ Disable the Google Meet checkbox to delete the meeting. +

+ +
+
+

+ From Google Calendar also, the Meeting has been removed. +

+ +
+ +
+ +
+
+

Suggested Products

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

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ +
\ No newline at end of file diff --git a/odoo_google_meet_integration/views/calendar_event_views.xml b/odoo_google_meet_integration/views/calendar_event_views.xml new file mode 100644 index 000000000..6c400a79e --- /dev/null +++ b/odoo_google_meet_integration/views/calendar_event_views.xml @@ -0,0 +1,46 @@ + + + + + + calendar.event.view.form.inherit.odoo.google.meet.integration + + calendar.event + + + + + + + + + + + + +