| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Documents (documents)
• Discuss (mail) |
| Lines of code | 1610 |
| Technical Name |
google_drive_sync |
| License | OPL-1 |
| Website | https://ezway-technology.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Documents (documents)
• Discuss (mail) |
| Lines of code | 1610 |
| Technical Name |
google_drive_sync |
| License | OPL-1 |
| Website | https://ezway-technology.com |
✨ Key Features
|
↕️
Bidirectional SyncDrive → Odoo and Odoo → Drive. The most recently modified file always wins, using automatic timestamp comparison. |
⚡
Real-time PushDrop a file into a synced Odoo workspace and it is instantly uploaded to Drive — no need to wait for the scheduled cron. |
🔗
Virtual Links (Browse Drive)Access all your Drive files from Odoo as clickable links — without downloading anything or filling up Odoo storage. |
|
📦
Large File HandlingFiles exceeding the configurable size limit (default 50 MB) are automatically stored as virtual links in both directions. |
🗑️
Deletion PropagationOptional: when a file is deleted in Odoo, it is moved to the Drive trash (recoverable). Disabled by default. |
🎛️
Direction ControlEnable or disable download (Drive→Odoo) and upload (Odoo→Drive) independently. Real-time push follows the upload setting. |
|
📁
Subfolder FilterLoad Drive subfolders and select exactly which ones to synchronize. |
⏱️
Flexible SchedulingConfigurable cron: every 1, 5, 10, 20, 30 min, 1h, 2h, 3h, 6h, 12h or 24h. |
📊
Full Sync LogsComplete history for every synchronization: status, counters, processed file list and detailed error reporting. |
📐 File Size Behavior
| Direction | ≤ Max size | > Max size |
|---|---|---|
| Drive → Odoo | Downloaded and stored in Odoo | Virtual link created in Odoo (click opens the file in browser) |
| Odoo → Drive | Uploaded, binary kept in Odoo | Uploaded to Drive, Odoo document converted to virtual link |
🔑 OAuth2 Authentication
The module uses the secure OAuth2 redirect flow — fully compatible with current Google restrictions (the OOB flow has been blocked since 2022).
- Enter your Client ID and Client Secret
- Click "Authorize with Google" → complete consent in the browser
- Automatic redirect back to the configuration — tokens are saved
- Permanent refresh token with automatic renewal
📦 Installation
- Install the required Python libraries:
pip install google-api-python-client google-auth google-auth-oauthlib - Copy the
google_drive_syncfolder into your Odoo addons directory - Make sure the Documents module is installed
- In Odoo: Apps → Update App List → Search "Google Drive Odoo Sync" → Install
🚀 Getting Started in 5 Steps
-
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 redirect URI:
https://<your-domain>/google_drive_sync/oauth2callback
- Create a configuration in Google Drive Sync → Configurations
- Authorize access by clicking "Authorize with Google"
- Configure: Drive folder (ID, URL or path
/My Folder/Subfolder), Odoo root folder, options - Run the first synchronization with "Synchronize Now"
Click "Browse Drive (Virtual)" to load all your Drive files as clickable links in Odoo without downloading anything. Perfect for large document libraries or Google-native formats (Docs, Sheets, Slides) that cannot be downloaded.
The Drive folder field accepts three formats: the folder ID, the full Google Drive URL, or an absolute path (e.g.
/Accounting/2024).
📋 Requirements
- Odoo 17.0 Enterprise
documentsmodule installed- Python 3.8+
- Python libraries:
google-api-python-client,google-auth,google-auth-oauthlib - Google account with Google Drive API access
Ready to sync?
Connect Google Drive to Odoo Documents in a few clicks and access all your files from one place.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module