Google Drive Integration | File Management System
by bst-inn https://www.linkedin.com/in/amro00743/ , Amro00743 https://www.linkedin.com/in/amro00743/$ 285.58
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 741 |
Technical Name |
drive_management |
License | OPL-1 |
Website | https://www.linkedin.com/in/amro00743/ |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 741 |
Technical Name |
drive_management |
License | OPL-1 |
Website | https://www.linkedin.com/in/amro00743/ |
Google Drive Integration
ODOO 16 Enterprise & Community
Seamlessly manage your Google Drive files and folders directly from the Odoo interface.

Key Features
Full File & Folder Management
List, navigate, create, rename, and delete files and folders with an intuitive user interface.
Easy File Uploads
Upload files directly from Odoo to your Google Drive. Multi-file upload is supported.
Configurable Root Folder
Restrict the UI to a specific Google Drive folder, providing a focused and secure workspace for your users.
Granular Access Control
Use Odoo's built-in security groups to control who can view, create, upload, rename, download, and delete files.
Required External Libraries
Before installation, ensure the following Python libraries are installed in your Odoo environment:
- google-api-python-client
- google-auth-httplib2
- google-auth-oauthlib
You can install them using pip:
pip3 install google-api-python-client google-auth-httplib2 google-auth-oauthlib
Configuration Guide: Google Cloud Console
Follow these steps to get your Google API credentials:
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- From the navigation menu, go to APIs & Services > Library.
- Search for "Google Drive API" and click Enable.
- Go to APIs & Services > OAuth consent screen. Configure it for your application (choose "External" if you are not a Google Workspace user). Add the `.../auth/drive` scope.
- Go to APIs & Services > Credentials. Click Create Credentials > OAuth client ID.
- Select Web application as the application type.
- Under Authorized redirect URIs, click ADD URI. This is the most important step to avoid `redirect_uri_mismatch` errors.
- Enter your full Odoo base URL followed by `/google_drive/auth`. For example:
https://your-odoo-domain.com/google_drive/auth
- Click Create. Copy the generated Client ID and Client Secret.
Configuration Guide: Odoo
Once you have your credentials from Google, configure them in Odoo.

- Go to Settings > General Settings and find the Google Drive Integration section.
- Paste your Client ID and Client Secret into the respective fields.
- (Optional) Enter a specific Google Drive Folder ID to use as the root folder for the UI. If left empty, it will use your entire Google Drive.
- Click Save.
- Finally, click the Connect to Google Drive button to initiate the authentication process.
Security Groups
Control user actions with fine-grained security groups. Assign these groups to your users from Settings > Users & Companies > Users.

- Access Drive Management: Base group required to see the Google Drive menu.
- Create Folder: Allows user to create new folders.
- Upload File: Allows user to upload files.
- Rename File: Allows user to rename files and folders.
- Download File: Allows user to download files.
- Delete File: Allows user to delete files and folders.
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