🔄 Google Drive Odoo Sync

Two-way synchronization between Google Drive and Odoo Documents

✨ Main Features

Bidirectional synchronization

Drive → Odoo and Odoo → Drive. The most recently modified file always takes precedence, thanks to an automatic comparison of timestamps.

Real-time dispatch

Drop a file into a synchronized Odoo workspace and it is instantly uploaded to Drive — no need to wait for the scheduled cron job.

Virtual links (Browse Drive)

Access all your Drive files from Odoo as clickable links — without downloading anything or filling up Odoo storage.

Managing large files

Files exceeding the configurable size limit (50 MB by default) are automatically stored as virtual links in both directions.

Propagation of the suppression

Optional: When a file is deleted in Odoo, it is moved to the Drive recycle bin (recoverable). Disabled by default.

Steering control

Enable or disable downloading (Drive→Odoo) and uploading (Odoo→Drive) independently. Real-time uploading follows the upload setting.

Steering control

Enable or disable downloading (Drive→Odoo) and uploading (Odoo→Drive) independently. Real-time uploading follows the upload setting.

Flexible planning

Configurable cron: every 1, 5, 10, 20, 30 min, 1h, 2h, 3h, 6h, 12h or 24h.

Complete synchronization logs

Complete history for each synchronization: status, counters, list of files processed and detailed error report.

🔑 OAuth2 Authentication

The module uses the secure OAuth2 redirection flow — fully compatible with current Google restrictions (the OOB flow has been blocked since 2022).

  1. Enter your Customer ID and Customer Secret
  2. Click on “Allow with Google” → complete the consent in the browser
  3. Automatic redirection to configuration — tokens are saved
  4. Jeton d’actualisation permanent avec renouvellement automatique

📦 Installation

  1. Install the required Python libraries:pip install google-api-python-client google-auth google-auth-oauthlib
  2. Copy the foldergoogle_drive_sync in your Odoo addons directory
  3. Make sure the Documents module is installed
  4. In Odoo: Applications → Update application list → Search for “Google Drive Odoo Sync” → Install

🚀 Getting Started in 5 Steps

  1. Create OAuth2 credentials on Google Cloud Console
    • Enable the Google Drive API
    • Create an OAuth 2.0 client ID of type Web Application
    • Add the redirection URI: https://votre-domaine/google_drive_sync/oauth2callback
  2. Create a configuration in Google Drive Sync → Configurations
  3. Allow access by clicking “Allow with Google”
  4. Configure: Drive folder (ID, URL or path/Mon Dossier/Sous-dossier ), Odoo root folder, options
  5. Start the first synchronization with “Synchronize now”
💡 Tip — Browse Drive (Virtual) Click on “Browse Drive (Virtual)” to load all your Drive files as clickable links in Odoo without downloading anything. Perfect for large document libraries or native Google formats (Docs, Sheets, Slides) that cannot be downloaded.
✅ Accepted Drive folder formats The Drive folder field accepts three formats: the folder ID, the full Google Drive URL, or an absolute path (e.g. /Accounting/2024).

📋 Prerequisites

  • Odoo 17.0 Enterprise
  • documents module installed
  • Python 3.8+
  • Python libraries: google-api-python-client google-auth , google-auth-oauthlib
  • Google Account with access to the Google Drive API

⭐ Support illimité inclus

Notre équipe d'experts Odoo est à votre service

Support téléphonique pour toutes vos questions techniques