Google Drive

Module Cloudlink - Google Drive
Technical Name cloud_link_gdrive

Cloudlink - Google Drive allows you to connect Odoo with Google Drive. This extension is ideal if you want to back up your documents to the cloud.

Google Drive

Setup

You can connect Google Drive to Odoo via two authentication flows.

  1. Create a Google Cloud Project
  2. Enable the Google Drive API
  3. Create a service account and note its email.
  4. Create a service account key and save it in JSON format. Copy the content of the JSON file into the Service Account Credentials field
  5. Share a Google Drive folder with the service account email
  6. Fill Root ID with the id of your shared drive.

Google Drive


  1. Create a Google Cloud Project
  2. Enable the Google Drive API
  3. Create OAuth 2.0 Client Credentials (Click “Create Client”). Application type: Web application.
  4. Add the Redirect URI shown in the Odoo Google Drive form to the list of redirect URIs in Google Cloud Console. https://<your_odoo_domain>/cl_link_gdrive/token
  5. Download the OAuth client secret JSON file. Paste its content into the Client Secret File field in Odoo.
  6. Click “Authorize” in the Odoo Google Drive form and complete the browser-based login/consent flow.
  7. Once authorized, the refresh token is saved and used for API access.
  8. Fill Root ID with the id of your shared drive.

OAuth 2.0 Client


Google Drive

Google Drive Settings

Service Account Credentials

A service account key in JSON format.

Client Secret File

OAuth client secret (JSON) downloaded from Google Cloud Console, required when using the Authorization Code Flow.

Redirect URI

The URI that must be added to the list of authorized redirect URIs in the OAuth credentials in Google Cloud. This value is auto-generated by Odoo. Copy it from the form and use it in the Google Cloud Console setup for your OAuth client.

Root ID

The id of a shared drive.

Root ID