What Cloud Drive Google Drive does
Connect My Drive or a shared drive to Viyug Cloud Drive with your own Google Cloud OAuth client. Odoo files attachments into folders per customer, project or record, reads the Google Drive change feed to bring new, changed and moved files into the chatter, and uploads big files in resumable sessions.
Google Drive for Viyug Cloud Drive: Odoo attachments in Google Drive folders per customer, vendor, year or project, My Drive or shared drives, files added in Google Drive appear in the record chatter (changes.list feed), moves followed, md5-verified uploads, resumable uploads for big files, Google Docs exported on download, your own Google Cloud OAuth client with offline refresh token.
- My Drive or shared drive
- Change feed
- Your own OAuth app
Features
Create an OAuth client
Google Cloud: enable the Drive API, create a web client with the redirect URI shown in Odoo.
Authorize
Paste client ID and secret, press Authorize access, allow.
Odoo files documents
Into record folders in My Drive or the shared drive.
Work in Google Drive
New and moved files reach the record chatter.
My Drive or shared drives
Enter a shared drive ID to file everything in a Workspace shared drive, or leave it empty for My Drive.
Your own OAuth client
Created in your Google Cloud project: no third-party app gets access, no app review needed. Offline refresh token renewed automatically.
Change feed
Google changes.list page tokens: new, changed, moved and trashed files reach Odoo without scanning folders.
Resumable uploads
Big files go in 8 MB chunks through a Google upload session; an interrupted upload asks Google where it stopped and continues.
md5 checked
Google returns the md5Checksum of every upload; Odoo compares it before freeing its copy.
Google Docs too
Docs, Sheets and Slides added to a record folder are exported to Office formats when opened from Odoo.
Before and after
Without the app
- Contracts uploaded twice
- Drive folders named by hand
- Files added in Drive never reach Odoo
- Third-party app with access to every file
With Cloud Drive Google Drive
- Odoo files attachments into Drive folders
- Folder per customer, project or record
- New Drive files appear in the record chatter
- Your own OAuth client in your own Google project
How it works, step by step
01Connect Google Drive
Connect a drive > Google Drive. Paste the client ID and secret of the OAuth client you created in your Google Cloud project, and optionally the ID of a shared drive.

02Register the redirect URI, then authorize
The wizard shows the exact redirect URI to add to the OAuth client. Authorize access opens the Google consent page; after you allow, Odoo stores an offline refresh token and tests the connection.

03Connected
The drive shows the connected account, the setup steps next to the fields, its folder rules and the sync log. Re-authorize is available at any time.

04Folder rules for Google Drive
Rules decide which records get a Google Drive folder and where: here every task in Projects / project / Tasks / task, in copy mode so the files stay in Odoo too. The example shows the folder of a real task.
05The task folder in Google Drive
The Drive button of the task opens its Google Drive folder: the kitchen layout uploaded from Odoo (md5 checked) and the measurements a colleague saved in Google Drive, both in sync.
06Saved in Google Drive, shown on the task
The measurements PDF was added to the task folder in Google Drive. The changes feed brought it to the task with a chatter note, ready to preview.
07Every change in the sync log
The upload with its md5 verification and the drive check that imported the new file, per drive.
08Next to your other drives
The Google drive appears on the health dashboard with the S3 bucket, the NAS and Dropbox, with its files, folders and queue.
Included apps
Odoo installs these Viyug Infotech apps together with Cloud Drive Google Drive.
Questions about Cloud Drive Google Drive
Why my own OAuth client?
Full Drive access from a shared public app needs a Google security review. With your own client in your own project, only your company is involved, and you can revoke it any time.
Does the token expire?
Odoo keeps an offline refresh token. Publish the OAuth app (or use an Internal Workspace app): apps left in Testing status get tokens that expire after 7 days.
Is a deleted file gone?
Odoo moves files it deletes to the Google Drive trash. Files trashed in Drive are flagged in Odoo; files that exist only in Drive are never deleted in Odoo.
