Browse Source

Oct 27 : [ADD] Initial Commit 'odoo_google_contact_integration'

pull/295/head
RisvanaCybro 2 years ago
parent
commit
d4a0d67fdc
  1. 50
      odoo_google_contact_integration/README.rst
  2. 23
      odoo_google_contact_integration/__init__.py
  3. 43
      odoo_google_contact_integration/__manifest__.py
  4. 22
      odoo_google_contact_integration/controllers/__init__.py
  5. 73
      odoo_google_contact_integration/controllers/google_contact_integration.py
  6. 6
      odoo_google_contact_integration/doc/RELEASE_NOTES.md
  7. 23
      odoo_google_contact_integration/models/__init__.py
  8. 168
      odoo_google_contact_integration/models/res_company.py
  9. 162
      odoo_google_contact_integration/models/res_partner.py
  10. BIN
      odoo_google_contact_integration/static/description/assets/icons/check.png
  11. BIN
      odoo_google_contact_integration/static/description/assets/icons/chevron.png
  12. BIN
      odoo_google_contact_integration/static/description/assets/icons/cogs.png
  13. BIN
      odoo_google_contact_integration/static/description/assets/icons/consultation.png
  14. BIN
      odoo_google_contact_integration/static/description/assets/icons/ecom-black.png
  15. BIN
      odoo_google_contact_integration/static/description/assets/icons/education-black.png
  16. BIN
      odoo_google_contact_integration/static/description/assets/icons/hotel-black.png
  17. BIN
      odoo_google_contact_integration/static/description/assets/icons/license.png
  18. BIN
      odoo_google_contact_integration/static/description/assets/icons/lifebuoy.png
  19. BIN
      odoo_google_contact_integration/static/description/assets/icons/logo.png
  20. BIN
      odoo_google_contact_integration/static/description/assets/icons/manufacturing-black.png
  21. BIN
      odoo_google_contact_integration/static/description/assets/icons/pos-black.png
  22. BIN
      odoo_google_contact_integration/static/description/assets/icons/puzzle.png
  23. BIN
      odoo_google_contact_integration/static/description/assets/icons/restaurant-black.png
  24. BIN
      odoo_google_contact_integration/static/description/assets/icons/service-black.png
  25. BIN
      odoo_google_contact_integration/static/description/assets/icons/trading-black.png
  26. BIN
      odoo_google_contact_integration/static/description/assets/icons/training.png
  27. BIN
      odoo_google_contact_integration/static/description/assets/icons/update.png
  28. BIN
      odoo_google_contact_integration/static/description/assets/icons/user.png
  29. BIN
      odoo_google_contact_integration/static/description/assets/icons/wrench.png
  30. BIN
      odoo_google_contact_integration/static/description/assets/misc/categories.png
  31. BIN
      odoo_google_contact_integration/static/description/assets/misc/check-box.png
  32. BIN
      odoo_google_contact_integration/static/description/assets/misc/compass.png
  33. BIN
      odoo_google_contact_integration/static/description/assets/misc/corporate.png
  34. BIN
      odoo_google_contact_integration/static/description/assets/misc/customer-support.png
  35. BIN
      odoo_google_contact_integration/static/description/assets/misc/cybrosys-logo.png
  36. BIN
      odoo_google_contact_integration/static/description/assets/misc/features.png
  37. BIN
      odoo_google_contact_integration/static/description/assets/misc/logo.png
  38. BIN
      odoo_google_contact_integration/static/description/assets/misc/pictures.png
  39. BIN
      odoo_google_contact_integration/static/description/assets/misc/pie-chart.png
  40. BIN
      odoo_google_contact_integration/static/description/assets/misc/right-arrow.png
  41. BIN
      odoo_google_contact_integration/static/description/assets/misc/star.png
  42. BIN
      odoo_google_contact_integration/static/description/assets/misc/support.png
  43. BIN
      odoo_google_contact_integration/static/description/assets/misc/whatsapp.png
  44. BIN
      odoo_google_contact_integration/static/description/assets/modules/biometric_device.png
  45. BIN
      odoo_google_contact_integration/static/description/assets/modules/google_meet_integration.png
  46. BIN
      odoo_google_contact_integration/static/description/assets/modules/hr_linkedin.png
  47. BIN
      odoo_google_contact_integration/static/description/assets/modules/multi_sms.png
  48. BIN
      odoo_google_contact_integration/static/description/assets/modules/product_upcitemdb.png
  49. BIN
      odoo_google_contact_integration/static/description/assets/modules/whatsapp.png
  50. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_1.png
  51. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_10.png
  52. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_11.png
  53. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_12.png
  54. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_13.png
  55. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_14.png
  56. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_15.png
  57. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_16.png
  58. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_17.png
  59. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_18.png
  60. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_19.png
  61. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_2.png
  62. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_20.png
  63. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_21.png
  64. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_22.png
  65. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_23.png
  66. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_3.png
  67. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_4.png
  68. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_5.png
  69. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_6.png
  70. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_7.png
  71. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_8.png
  72. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/gci_9.png
  73. BIN
      odoo_google_contact_integration/static/description/assets/screenshots/hero.gif
  74. BIN
      odoo_google_contact_integration/static/description/banner.png
  75. BIN
      odoo_google_contact_integration/static/description/icon.png
  76. 870
      odoo_google_contact_integration/static/description/index.html
  77. 55
      odoo_google_contact_integration/views/res_company_views.xml
  78. 60
      odoo_google_contact_integration/views/res_partner_views.xml

50
odoo_google_contact_integration/README.rst

@ -0,0 +1,50 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Google Contact Connector
========================
* Google Contact Connector module helps to Synchronize Google Contacts.
Configuration
=============
* No additional configurations needed
Installation
============
- www.odoo.com/documentation/16.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: (V16) Gion Dany, 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_contact_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: Cybrosys Techno Solutions(<https://www.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

43
odoo_google_contact_integration/__manifest__.py

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.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 Contact Connector",
'version': '16.0.1.0.0',
"category": "Extra Tools",
'summary': """Synchronize Google Contacts (Import/Export).""",
'description': """The Google Contact Connector module helps you import
Google contacts from Odoo and export Google contacts to Odoo.""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['contacts'],
'data': [
'views/res_company_views.xml',
'views/res_partner_views.xml'
],
'images': ['static/description/banner.png'],
'license': "LGPL-3",
'installable': True,
'auto_install': False,
'application': False
}

22
odoo_google_contact_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: Cybrosys Techno Solutions(<https://www.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 google_contact_integration

73
odoo_google_contact_integration/controllers/google_contact_integration.py

@ -0,0 +1,73 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.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 _
from odoo import http
from odoo.http import request
from odoo.exceptions import UserError
TIMEOUT = 20
class GoogleContactAuth(http.Controller):
"""Controller for Google Contact authentication. """
@http.route('/google_contact_authentication', type="http", auth="public",
website=True)
def get_auth_code(self, **kw):
"""Connect your Google account with the OAuth Authentication process.
You will be redirected to the Google login page
where you will need to accept the permission."""
user_id = request.uid
company_id = http.request.env['res.users'].sudo().search(
[('id', '=', user_id)], limit=1).company_id
if kw.get('code'):
company_id.write(
{'contact_company_authorization_code': kw.get('code')})
data = {
'code': kw.get('code'),
'client_id': company_id.contact_client_id,
'client_secret': company_id.contact_client_secret,
'redirect_uri': company_id.contact_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'},
timeout=TIMEOUT)
if response.json() and response.json().get('access_token'):
company_id.write({
'contact_company_access_token':
response.json().get('access_token'),
'contact_company_access_token_expiry':
datetime.datetime.now() + datetime.timedelta(
seconds=response.json().get('expires_in')),
'contact_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_contact_integration/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <odoo_google_contact_integration>
#### 21.10.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Google Contact Connector

23
odoo_google_contact_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: Cybrosys Techno Solutions(<https://www.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 res_partner
from . import res_company

168
odoo_google_contact_integration/models/res_company.py

@ -0,0 +1,168 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.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 logging
import requests
from odoo import fields, models, _
from odoo.exceptions import UserError, ValidationError
_logger = logging.getLogger(__name__)
TIMEOUT = 20
class ResCompany(models.Model):
"""Inherit res_company for integrating contacts with Google"""
_inherit = "res.company"
contact_client_id = fields.Char(
string="Client Id", help='People API Client ID')
contact_client_secret = fields.Char(
string="Client Secret", help='People API Client Secret')
contact_redirect_uri = fields.Char(
string="Authorized redirect URIs",
default="http://localhost:8016/google_contact_authentication",
help='People API Authorized redirect URIs')
contact_company_access_token = fields.Char(
string="Access Token", copy=False,
help='People API Access Token')
contact_company_access_token_expiry = fields.Datetime(
string="Token expiry", help='People API Token Expiry')
contact_company_refresh_token = fields.Char(
string="Refresh Token", copy=False, help='People API Refresh Token')
contact_company_authorization_code = fields.Char(
string="Authorization Code", help='People API Authorization Code')
def action_google_contact_authenticate(self):
"""Authenticate the connection to Google."""
if not self.contact_client_id:
raise ValidationError("Please Enter Client ID")
if not self.contact_redirect_uri:
raise ValidationError("Please Enter Client Secret")
people_scope = 'https://www.googleapis.com/auth/contacts'
url = (
"https://accounts.google.com/o/oauth2/v2/auth?response_type=code"
"&access_type=offline&client_id={}&redirect_uri={}&scope={} "
).format(self.contact_client_id,
self.contact_redirect_uri, people_scope)
return {
"type": 'ir.actions.act_url',
"url": url,
"target": "new"
}
def action_google_contact_refresh_token(self):
"""Request a refresh token from Google."""
if not self.contact_client_id:
raise UserError(
_('Client ID is not yet configured.'))
if not self.contact_client_secret:
raise UserError(
_('Client Secret is not yet configured.'))
if not self.contact_company_refresh_token:
raise UserError(
_('Refresh Token is not yet configured.'))
data = {
'client_id': self.contact_client_id,
'client_secret': self.contact_client_secret,
'refresh_token': self.contact_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.json() and response.json().get('access_token'):
self.write({
'contact_company_access_token':
response.json().get('access_token'),
})
else:
raise UserError(
_('Something went wrong during the token generation.'
' Please request again an authorization code.')
)
def action_import_google_contacts(self):
"""IMPORT Contacts FROM Google TO ODOO"""
url = ("https://people.googleapis.com/v1/people/me/"
"connections?personFields=names,addresses,"
"emailAddresses,phoneNumbers&pageSize=1000")
headers = {
'Authorization': f'Bearer {self.contact_company_access_token}',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
if response.status_code == 200:
data = response.json().get('connections', [])
partners = []
for connection in data:
cnt_rsr_name = connection.get('resourceName', '')
etag = connection.get('etag', '')
names = connection.get('names', [{}])[0]
first_name = names.get('givenName', '')
last_name = names.get('familyName', '')
name = names.get('displayName', '')
emailAddresses = connection.get('emailAddresses', [{}])[0]
email = emailAddresses.get('value', '')
phoneNumbers = connection.get('phoneNumbers', [{}])[0]
phone = phoneNumbers.get('value', '')
addresses = connection.get('addresses', [{}])[0]
street = addresses.get('streetAddress', '')
street2 = addresses.get('extendedAddress', '')
city = addresses.get('city', '')
pin = addresses.get('postalCode', '')
state = addresses.get('region', '')
state = self.env['res.country.state'].search(
[("name", 'ilike', state)], limit=1)
state_id = state.id if state else False
country_code = addresses.get('countryCode', '')
country = self.env['res.country'].search(
[('code', 'ilike', country_code)], limit=1)
country_id = country.id if country else False
partner_vals = {
'name': name or '',
'first_name': first_name or '',
'last_name': last_name or '',
'email': email or '',
'street': street or '',
'street2': street2 or '',
'city': city or '',
'zip': pin or '',
'state_id': state_id or False,
'country_id': country_id or False,
'phone': phone,
'google_resource': cnt_rsr_name,
'google_etag': etag,
}
existing_partner = self.env['res.partner'].search(
[('google_resource', '=', cnt_rsr_name)], limit=1)
if existing_partner:
existing_partner.write(partner_vals)
else:
partners.append(partner_vals)
if partners:
self.env['res.partner'].create(partners)
_logger.info("Contact imported successfully!")
else:
error_message = f"Failed to import contact. Error: {response.text}"
raise ValidationError(error_message)

162
odoo_google_contact_integration/models/res_partner.py

@ -0,0 +1,162 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.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 logging
import requests
from odoo import fields, models, _
from odoo.exceptions import ValidationError
_logger = logging.getLogger(__name__)
TIMEOUT = 20
class ResPartner(models.Model):
"""Inherit res_partner for integrating contacts with Google"""
_inherit = 'res.partner'
google_resource = fields.Char('Google Contact Id',
help='Contact Unique identifier', readonly=True)
google_etag = fields.Char(
'Google Etag', help='Contact Version control key', readonly=True)
first_name = fields.Char(
'First Name', help='Enter the first name of the person.')
last_name = fields.Char(
'Last Name', help='Enter the last name of the person.')
def action_export_google_contacts(self):
"""Export Contacts FROM Google TO ODOO"""
current_uid = self._context.get('uid')
user_id = self.env['res.users'].browse(current_uid)
company_id = user_id.company_id
partner_ids = self.env['res.partner'].sudo().browse(
self.env.context.get('active_ids'))
for partner in partner_ids:
header = {
'Authorization':
f'Bearer {company_id.contact_company_access_token}',
'Content-Type': 'application/json'
}
contact_payload = {
'names': [
{
'givenName': partner.first_name or partner.name,
'familyName': partner.last_name or ''
}
],
'emailAddresses': [
{
'value': partner.email or '',
'type': 'work'
}
],
'phoneNumbers': [
{
'value': partner.phone or '',
'type': 'work'
}
],
'addresses': [
{
'streetAddress': partner.street or '',
'city': partner.city or '',
'region': partner.state_id.name or '',
'postalCode': partner.zip or '',
'country': partner.country_id.name or '',
'type': 'work'
}
],
'organizations': [
{
'name': partner.company_id.name or '',
'title': partner.title or '',
'type': 'work'
}
]
}
if partner.google_etag:
contact_resource_name = partner.google_resource
contact_payload['resourceName'] = contact_resource_name
contact_payload['etag'] = partner.google_etag
url = (
f"https://people.googleapis.com/v1/{contact_resource_name}:updateContact?"
"updatePersonFields=emailAddresses,names,phoneNumbers,"
"addresses,organizations,userDefined&"
"prettyPrint=false"
)
response = requests.patch(url, headers=header,
json=contact_payload)
if response.status_code == 200:
partner.write({
'google_resource': response.json().get('resourceName'),
'google_etag': response.json().get('etag')
})
_logger.info("Contact updated successfully!")
else:
error_message = f"Failed to update contact. Error: {response.text}"
raise ValidationError(error_message)
else:
url = 'https://people.googleapis.com/v1/people:createContact'
result = requests.post(url, headers=header,
json=contact_payload)
if result.status_code == 200:
partner.write({
'google_resource': result.json().get('resourceName'),
'google_etag': result.json().get('etag')
})
_logger.info("Contact exported successfully!")
else:
error_message = f"Failed to export contact. Error: {result.text}"
raise ValidationError(error_message)
def action_delete_google_contact(self):
"""Deleting a contact from Google Contacts"""
current_uid = self._context.get('uid')
user_id = self.env['res.users'].browse(current_uid)
company_id = user_id.company_id
partner_ids = self.env['res.partner'].sudo().browse(
self.env.context.get('active_ids'))
for partner in partner_ids:
contact_resource_name = partner.google_resource
if not contact_resource_name:
_logger.warning(
"Partner %s does not have a Google contact resource name.",
partner.name)
continue
url = f"https://people.googleapis.com/v1/{contact_resource_name}:deleteContact"
headers = {
'Authorization': f'Bearer {company_id.contact_company_access_token}',
'Content-Type': 'application/json'
}
response = requests.delete(url, headers=headers)
if response.status_code == 200:
_logger.info("Contact deleted successfully!")
partner.google_resource = ''
partner.google_etag = ''
partner.unlink()
elif response.status_code == 404:
_logger.warning(
"Contact not found in Google. Removing local reference.")
partner.google_resource = ''
partner.google_etag = ''
else:
error_message = f"Failed to delete contact. Error: {response.text}"
raise ValidationError(error_message)

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
odoo_google_contact_integration/static/description/assets/icons/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
odoo_google_contact_integration/static/description/assets/modules/biometric_device.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
odoo_google_contact_integration/static/description/assets/modules/google_meet_integration.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
odoo_google_contact_integration/static/description/assets/modules/hr_linkedin.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
odoo_google_contact_integration/static/description/assets/modules/multi_sms.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
odoo_google_contact_integration/static/description/assets/modules/product_upcitemdb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
odoo_google_contact_integration/static/description/assets/modules/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_20.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_21.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_22.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_23.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
odoo_google_contact_integration/static/description/assets/screenshots/gci_9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

BIN
odoo_google_contact_integration/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
odoo_google_contact_integration/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

870
odoo_google_contact_integration/static/description/index.html

@ -0,0 +1,870 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div style="color: #017E84; 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>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Google Contact Connector</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
A Module For Synchronizing Google Contacts.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn More About This Module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View Features of This Module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View Screenshots for This Module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#configuration">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Configuration</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View Configuration for This Module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 20px; line-height: 200%;">
<div class="col-sm-12 py-4">
The Google Contact Connector module helps you import Google contacts from Odoo and export Google contacts to Odoo.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Import Odoo contacts to Google.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Update already created contacts when importing from Google to Odoo.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Delete contact from Odoo and Google.</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Export Google contacts to Odoo.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Update already created contacts when exporting from Google to Odoo.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Filter contact synced with Google.</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- CONFIGURATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="configuration">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Configuration</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Steps to set up in Google.
</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 16px !important">
1. Sign in with your Google Account. To generate Google Contact API credentials, go to Google API Platform.
<br/>
&nbsp;&nbsp;&nbsp;&nbsp;(https://console.cloud.google.com/apis/dashboard)
<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Click Enable APIs and Services.
</p>
<img src="assets/screenshots/gci_1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
2. In the search bar, look for Google People API.
</h3>
<img src="assets/screenshots/gci_2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
3. Select the Google People API and enable it.
</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 16px !important;">
</p>
<img src="assets/screenshots/gci_3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
4. Click Create Credentials.
</h3>
<img src="assets/screenshots/gci_4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
5. Choose Google People API and the User Data. Then, click Next.
</h3>
<img src="assets/screenshots/gci_5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
6. Enter the app name and email address. Then, click Save and Continue.
</h3>
<img src="assets/screenshots/gci_6.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
7. Skipped the Third Scope. Save and Continue.
</h3>
<img src="assets/screenshots/gci_7.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
8. Choose Website application and then type the name of the app.
</h3>
<img src="assets/screenshots/gci_8.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
9. In the Authorized JavaScript Origins section, add your company's URL. And in the Authorized redirect URIs section, add your companys URL followed by /google_contact_authentication.
</h3>
<img src="assets/screenshots/gci_9.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
10. After successfully generating Google People API credentials, you will receive a Client ID and Client Secret.
</h3>
<img src="assets/screenshots/gci_10.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
11. Here we can see the Client ID and Secret Key.
</h3>
<img src="assets/screenshots/gci_11.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
12. Also provide users to access the app.
</h3>
<img src="assets/screenshots/gci_12.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF CONFIGURATION SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<div class="col-lg-12 my-2">
<h1 class="my-2"
style="text-align:center;font-family: 'Roboto', sans-serif !important; font-weight: 500 !important; color: #282F33 !important;">
Odoo Configuration</h1>
</div>
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Go to Settings-> Companies
Then click on the company name and select the Google Contact tab.
Enter the Client id, Client secret and Redirect Url in Credentials.
<br/>
After entering all the details click on Authenticate.
</h3>
<img src="assets/screenshots/gci_13.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
After successful authentication, now you can sync Google Contacts with Odoo.
</h3>
<img src="assets/screenshots/gci_14.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<div class="col-lg-12 my-2">
<h1 class="my-2"
style="text-align:center;font-family: 'Roboto', sans-serif !important; font-weight: 500 !important; color: #282F33 !important;">
Import Contact</h1>
</div>
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
In Google, Contacts.
</h3>
<img src="assets/screenshots/gci_17.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Go to Settings -> Companies -> Select the 'Google Contact' tab -> Then, click the 'Import Contacts' button to import Google contacts into Odoo.
</h3>
<img src="assets/screenshots/gci_18.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Contacts imported into Odoo.
</h3>
<img src="assets/screenshots/gci_19.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h1 class="my-2"
style="text-align:center;font-family: 'Roboto', sans-serif !important; font-weight: 500 !important; color: #282F33 !important;">
Export Contact</h1>
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Select the contacts that need to be exported from Odoo to Google. Then, click on the 'Export to Google' button.
</h3>
<img src="assets/screenshots/gci_15.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Exported contacts from Odoo to Google.
</h3>
<img src="assets/screenshots/gci_16.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h1 class="my-2"
style="text-align:center;font-family: 'Roboto', sans-serif !important; font-weight: 500 !important; color: #282F33 !important;">
Delete Contact</h1>
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Select the contacts that need to be deleted from both Google and Odoo. Then, click on the 'Delete G-Contact' button. If that contact is associated with another model, it will only be deleted from Google.
</h3>
<img src="assets/screenshots/gci_22.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
From Google, the contact has been removed.
</h3>
<img src="assets/screenshots/gci_23.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h1 class="my-2"
style="text-align:center;font-family: 'Roboto', sans-serif !important; font-weight: 500 !important; color: #282F33 !important;">
Filter Contact</h1>
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Click the Filter by 'G-contacts' option to filter the synchronized contacts.
</h3>
<img src="assets/screenshots/gci_20.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: normal;">
Contacts that synced with Google.
</h3>
<img src="assets/screenshots/gci_21.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related Products</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_google_meet_integration/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/google_meet_integration.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_linkedin_recruitment/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/hr_linkedin.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_zk_attendance/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/biometric_device.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/multi_sms_gateway/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/multi_sms.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_mail_messaging/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/whatsapp.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/upcitemdb_integration/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/product_upcitemdb.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i
class="fa fa-chevron-left"
style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1"
data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i
class="fa fa-chevron-right"
style="font-size:24px"></i></span></a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!--&lt;!&ndash; RELATED PRODUCTS &ndash;&gt;-->
<!--<div class="d-flex align-items-center"-->
<!-- style="border-bottom: 2px solid #714B67; padding: 15px 0px;">-->
<!-- <div class="d-flex justify-content-center align-items-center mr-2"-->
<!-- style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">-->
<!-- <img src="assets/misc/categories.png"/>-->
<!-- </div>-->
<!-- <h2 class="mt-2"-->
<!-- style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">-->
<!-- Related Products</h2>-->
<!--</div>-->
<!--<div class="row">-->
<!-- <div class="col-sm-12">-->
<!-- <div id="demo1" class="row carousel slide" data-ride="carousel">-->
<!-- &lt;!&ndash; The slideshow &ndash;&gt;-->
<!-- <div class="carousel-inner" style="padding: 30px;">-->
<!-- <div class="carousel-item" style="min-height: 198.656px;">-->
<!-- <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"-->
<!-- style="float:left">-->
<!-- <a href="https://apps.odoo.com/apps/modules/16.0/odoo_google_meet_integration/"-->
<!-- target="_blank">-->
<!-- <div style="border-radius:10px">-->
<!-- <img class="img img-responsive center-block"-->
<!-- style="border-radius: 0px;"-->
<!-- src="assets/modules/google_meet_integration.png">-->
<!-- </div>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"-->
<!-- style="float:left">-->
<!-- <a href="https://apps.odoo.com/apps/modules/16.0/hr_linkedin_recruitment/"-->
<!-- target="_blank">-->
<!-- <div style="border-radius:10px">-->
<!-- <img class="img img-responsive center-block"-->
<!-- style="border-radius: 0px;"-->
<!-- src="assets/modules/hr_linkedin.png">-->
<!-- </div>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"-->
<!-- style="float:left">-->
<!-- <a href="https://apps.odoo.com/apps/modules/16.0/hr_zk_attendance/"-->
<!-- target="_blank">-->
<!-- <div style="border-radius:10px">-->
<!-- <img class="img img-responsive center-block"-->
<!-- style="border-radius: 0px;"-->
<!-- src="assets/modules/biometric_device.png">-->
<!-- </div>-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="carousel-item active"-->
<!-- style="min-height: 198.656px;">-->
<!-- <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"-->
<!-- style="float:left">-->
<!-- <a href="https://apps.odoo.com/apps/modules/16.0/multi_sms_gateway/"-->
<!-- target="_blank">-->
<!-- <div style="border-radius:10px">-->
<!-- <img class="img img-responsive center-block"-->
<!-- style="border-radius: 0px;"-->
<!-- src="assets/modules/multi_sms.png">-->
<!-- </div>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"-->
<!-- style="float:left">-->
<!-- <a href="https://apps.odoo.com/apps/modules/16.0/upcitemdb_integration/"-->
<!-- target="_blank">-->
<!-- <div style="border-radius:10px">-->
<!-- <img class="img img-responsive center-block"-->
<!-- style="border-radius: 0px;"-->
<!-- src="assets/modules/product_upcitemdb.png">-->
<!-- </div>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"-->
<!-- style="float:left">-->
<!-- <a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_mail_messaging/"-->
<!-- target="_blank">-->
<!-- <div style="border-radius:10px">-->
<!-- <img class="img img-responsive center-block"-->
<!-- style="border-radius: 0px;"-->
<!-- src="assets/modules/whatsapp.png">-->
<!-- </div>-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- &lt;!&ndash; Left and right controls &ndash;&gt;-->
<!-- <a class="carousel-control-prev" href="#demo1" data-slide="prev"-->
<!-- style="width:35px; color:#000"> <span-->
<!-- class="carousel-control-prev-icon"><i-->
<!-- class="fa fa-chevron-left"-->
<!-- style="font-size:24px"></i></span>-->
<!-- </a> <a class="carousel-control-next" href="#demo1"-->
<!-- data-slide="next" style="width:35px; color:#000">-->
<!-- <span class="carousel-control-next-icon"><i-->
<!-- class="fa fa-chevron-right"-->
<!-- style="font-size:24px"></i></span></a>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--&lt;!&ndash; END OF RELATED PRODUCTS &ndash;&gt;-->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire Odoo Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Industries</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily Procure and Sell Your Products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy Configuration and Convivial Experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A Platform for Educational Management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, Track and Schedule Your Operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile Friendly, awe-inspiring Product Pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep Track of Services and Invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run Your Bar or Restaurant Methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An all-inclusive Hotel Management Application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068 27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

55
odoo_google_contact_integration/views/res_company_views.xml

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Inherit the Res Company form view -->
<record id="view_company_form" model="ir.ui.view">
<field name="name">
res.company.view.form.inherit.odoo.google.contact.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 Contact">
<separator name="gci_configuration"
string="Google Contact Configuration"/>
<notebook>
<page name="gci_credentials" string="Credentials">
<group>
<field name="contact_client_id"/>
<field name="contact_client_secret"/>
<field name="contact_redirect_uri"/>
</group>
<group>
<button string="Authenticate" type="object"
name="action_google_contact_authenticate"
class="oe_highlight"
/>
<button string="Refresh Token" type="object"
name="action_google_contact_refresh_token"
class="oe_highlight"/>
</group>
</page>
<page name="gci_authentication" string="Authentication">
<group>
<field name="contact_company_access_token"/>
<field name="contact_company_access_token_expiry"/>
<field name="contact_company_refresh_token"/>
<field name="contact_company_authorization_code"/>
</group>
</page>
<page name="gci_export" string="Import">
<group>
<div style="width: 150px; height: 50px; font-size: 16px;">
<button string="Import Contacts"
type="object"
name="action_import_google_contacts"
/>
</div>
</group>
</page>
</notebook>
</page>
</xpath>
</field>
</record>
</odoo>

60
odoo_google_contact_integration/views/res_partner_views.xml

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Inherit the Res Partner form view -->
<record id="view_partner_form" model="ir.ui.view">
<field name="name">
res.partner.view.form.inherit.odoo.google.contact.integration
</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//span[@name='address_name']" position="before">
<field name='first_name'/>
<field name="last_name"/>
</xpath>
<xpath expr="//field[@name='industry_id']" position="after">
<field name="google_resource"/>
<field name="google_etag"/>
</xpath>
</field>
</record>
<!-- Export G-Contact Button in action menu -->
<record id="action_export_google_contact" model="ir.actions.server">
<field name="name">Export to Google</field>
<field name="model_id" ref="model_res_partner"/>
<field name="binding_model_id" ref="model_res_partner"/>
<field name="binding_view_types">list,form</field>
<field name="state">code</field>
<field name="code">
if records:
action = records.action_export_google_contacts()
</field>
</record>
<!--Inherit the Res Partner filter view -->
<record id="view_res_partner_filter" model="ir.ui.view">
<field name="name">
res.partner.view.search.inherit.odoo.google.contact.integration
</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='type_company']" position="after">
<separator/>
<filter string="G-Contacts" name="g_contacts"
domain="[('google_resource','!=', False)]"/>
</xpath>
</field>
</record>
<!-- Delete G-Contact Button in action menu -->
<record id="action_delete_google_contact" model="ir.actions.server">
<field name="name">Delete G-Contact</field>
<field name="model_id" ref="model_res_partner"/>
<field name="binding_model_id" ref="model_res_partner"/>
<field name="binding_view_types">list,form</field>
<field name="state">code</field>
<field name="code">
if records:
action = records.action_delete_google_contact()
</field>
</record>
</odoo>
Loading…
Cancel
Save