| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 3587 |
| Technical Name |
eb_onedrive_connector |
| License | OPL-1 |
| Website | https://www.theerpbot.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 3587 |
| Technical Name |
eb_onedrive_connector |
| License | OPL-1 |
| Website | https://www.theerpbot.com |
EB OneDrive Connector
Use widget="onedrive_binary" to seamlessly store files in OneDrive!
Connect Odoo to Microsoft OneDrive using Microsoft Graph. Store files from onedrive_binary fields in the user's OneDrive instead of the database, per company. Configure Azure app credentials, OAuth, upload destination (default folder, folder picker, or auto subfolder per record), and optional scheduled token refresh. On the field itself, users can preview files with the eye icon and reuse chatter attachments via the paperclip (From chatter)-ideal for App Store deployments with clear company-level control.
Get in Touch Instantly
Scan with your phone to email or message us directly
Email Us
connect@theerpbot.comChat on WhatsApp
+91 95215 02818HIGHLIGHTS
Microsoft Graph & OAuth
Per-company Client ID/Secret, delegated scopes (e.g. Files.ReadWrite.All, openid, offline_access), and secure token storage with verify and refresh.
onedrive_binary widget
Use the dedicated field widget on forms and lists-upload, download, clear, plus From chatter and Preview actions. Standard binary fields stay in Odoo.
Upload destination modes
Default target folder, ask-for-folder wizard on each upload, or auto-create a subfolder per record under the drive root-configured with a single radio field.
OneDrive folder picker
When upload mode is "ask for folder", browse and select the target folder in OneDrive before the file is sent.
Preview ( eye icon)
Open a read-only preview for a stored file (including Office-friendly flows where configured) without leaving the form.
From chatter ( paperclip)
Pick an attachment already posted on the record's chatter and send it to OneDrive for this field (save the record first when required).
Scheduled token refresh
Link to the included ir.cron job that refreshes expiring access tokens before they lapse.
Markers in Odoo, files in OneDrive
Binary fields store a compact marker; file bytes live in OneDrive-reducing database size for large attachments.
Detailed Company Configuration Fields
To start using the OneDrive Connector, navigate to Settings -> Companies -> [Your Company] -> OneDrive tab. Below is the detailed explanation of all available configuration fields:
- Enable OneDrive connector: Turn this toggle on to use Microsoft OneDrive for this company's
onedrive_binaryfields. Saving the form does not automatically change this. - OneDrive Client ID & Client Secret: Obtain these from your Azure AD App Registration. These are required to connect your Odoo instance with Microsoft Graph.
- Personal Microsoft accounts (consumers): Turn this on if Azure shows an AADSTS9002346 error or your app is registered exclusively for 'Personal Microsoft accounts only'. This forces the use of the consumers endpoint.
- OneDrive Tenant ID: Azure AD directory (tenant) ID for work/school accounts. Leave it as 'common' for multi-tenant applications.
- Token verified: A read-only toggle indicating if the current credentials are valid, secrets exist, and the token is not expired.
- OneDrive Token Expires At: Shows the exact date and time when the current access token will expire.
- Upload destination: Controls where files uploaded via the
onedrive_binarywidget are stored:- Default: Uses the specified OneDrive Target Folder.
- Ask for folder on upload: Prompts the user with a folder picker wizard on every upload.
- Auto-create subfolder per record: Automatically creates a unique subfolder per record under the drive root (e.g., Task Name or Sale Order Name).
- Chatter -> OneDrive (From chatter): Defines the behavior when selecting an existing chatter attachment to push to OneDrive:
- Keep file in chatter: Leaves the original attachment in the Odoo database.
- After OneDrive: remove file from database: Deletes the local attachment to save space and replaces it with a log note indicating the file was moved.
- Scheduled action: refresh tokens: Links to the background cron job that refreshes access tokens before they expire to keep the integration running smoothly.
- Last OneDrive API message & Message type: Displays the most recent success, info, or error messages returned by the Microsoft Graph API.
Company Configuration & Authorization
Steps to Configure:
- Add your OneDrive Client ID and Client Secret.
- Click the Authorize with Microsoft button to grant access.
- Click the Verify token button to ensure your connection is active.
- Once the Token verified toggle is active, click Fetch folders to select your default upload folder.
Fetch Folder Wizard
Select Default Folder: After verifying your token, clicking the "Fetch folders" button opens this wizard to choose the default destination folder for your uploads.
onedrive_binary field - Upload, From chatter, Preview
Widget Features: Use the widget="onedrive_binary" on your binary fields to access OneDrive features directly on your forms.
Preview - eye icon ()
Preview Mode: Easily preview PDFs, images, and Office documents directly inside Odoo without needing to download them.
From chatter - paperclip ()
Chatter Integration: Select an attachment already posted in the chatter and push it to OneDrive seamlessly.
Folder picker (wizard upload mode)
Dynamic Folders: When upload mode is "ask for folder", browse and select the desired OneDrive folder right before the upload begins.
Remove and Log (Chatter Disposition)
Space Saving: When the chatter disposition is set to "remove file from database", the local attachment is deleted post-upload to save space, and a log note is added automatically.
Auto-Create Subfolders
Organized Structure: The "Auto-create subfolder per record" mode keeps your OneDrive neat by automatically grouping files in folders named after your Odoo records.
Version 19.0.1.1.1
Released on : 05/05/2026
Frequently Asked Questions
Does this module work with Odoo Community and Enterprise?
Yes. It depends on base, web, and mail and is intended for both editions.
Do standard binary fields automatically use OneDrive?
No. Only fields that use the onedrive_binary widget
store files via this connector. Regular binary fields behave as default Odoo.
What Azure API permissions are required?
Register delegated permissions such as Files.ReadWrite.All, openid, and
offline_access on your Azure AD app, matching the module documentation on the company OneDrive tab.
What does the eye (Preview) icon do?
It opens an in-browser preview of the file stored in OneDrive for that field (where supported), so users can verify content without using the download button.
What does "From chatter" (paperclip) do?
It lets users pick an attachment that already exists on the record's chatter and use it for this OneDrive-backed field-useful when a file was posted in chatter first. The record may need to be saved before picking, depending on context.
I need customization-how do I contact you?
Email connect@theerpbot.com with your requirements.
Do I need to buy the module again for each Odoo version?
App Store policy may require a purchase per major Odoo version; confirm on the store listing.
Please email us for support at connect@theerpbot.com
Our Services
Odoo Implementation
Odoo Support
Odoo Migration
Website Designing
Accounting & Bookkeeping
Odoo Integration
Odoo Upgrades
Odoo Training
Free 90 Days Support
TheERPBot will provide FREE 90 days support for any doubt, queries, and bug fixing or any type of issues related to this module. This is applicable from the date of purchase.
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