What Cloud Drive OneDrive & SharePoint does
Connect a SharePoint document library, a OneDrive for Business or a personal OneDrive to Viyug Cloud Drive with your own Microsoft Entra app. Odoo files attachments into folders per project, customer or record, reads the drive delta feed to bring new, changed and moved files into the chatter, checks every upload with QuickXorHash and creates Microsoft sharing links you can revoke from Odoo.
OneDrive and SharePoint for Viyug Cloud Drive: Odoo attachments in OneDrive or SharePoint document library folders per customer, vendor, year or project, site and library picker, files added in OneDrive / SharePoint appear in the record chatter (delta query), moves followed, QuickXorHash verified uploads, resumable upload sessions for big files, Microsoft sharing links with expiry and revoke, direct download links, app-only (client credentials) or signed-in user (PKCE) with client secret or certificate, throttling handled, national clouds.
- SharePoint libraries
- Delta feed
- Sharing links
Features
Register an app
In your Microsoft Entra tenant, with the redirect URI shown in Odoo.
Connect
Client ID, tenant, secret or certificate; test or authorize.
Choose a library
Search a site, pick its library. Odoo files documents there.
Work in SharePoint
New and moved files reach the record chatter.
Any OneDrive or library
A SharePoint document library (Teams sites included), a OneDrive for Business, a user's OneDrive or a personal OneDrive. One Odoo drive per library; rules route each model to its library.
Site and library picker
Search your SharePoint sites, open one, pick its library. Or type the site address and library name. Users' OneDrives by e-mail.
App only or signed-in user
App only (client credentials, admin consent): no person's account, keeps working when people leave. Or a signed-in user with PKCE and a refresh token renewed automatically.
Secret or certificate
Client secret or certificate credential (signed assertion). Your own app registration in your own tenant; Sites.Selected works for single-site access.
Delta feed
The drive delta query brings new, changed, moved and deleted files to Odoo without scanning folders. An expired token restarts the feed by itself.
QuickXorHash checked
Every upload is compared with the QuickXorHash Microsoft computes before Odoo frees its own copy.
Resumable uploads
Files above 4 MB go through upload sessions in 10 MiB fragments; after a broken connection the upload asks where it stopped and continues.
Microsoft sharing links
View or edit links for anyone or for your organization, with an expiry date, on a file or a whole record folder. Logged in the chatter, revoked from Odoo.
Throttling respected
429 and 503 answers pause the queue for the Retry-After time Microsoft asks, without using a retry.
Before and after
Without the app
- Files uploaded to SharePoint by hand
- Folders named differently by every user
- Files added in SharePoint never reach Odoo
- Customers get attachments by e-mail, forever
With Cloud Drive OneDrive & SharePoint
- Odoo files attachments into library folders
- Folder per project, customer or record
- New SharePoint files appear in the record chatter
- Microsoft sharing links with expiry, revoked from Odoo
How it works, step by step
01Connect OneDrive or SharePoint
Connect a drive > OneDrive / SharePoint. Here App only: the Application (client) ID and tenant of the app registered in your Microsoft Entra tenant, its client secret, and where to store: the Documents library of the Projects site.

02Connected to the library
The test signs in as the app, finds the site and its library, creates the root folder and reads the free space. The drive shows the library, the redirect URI for admin consent, Choose library, Sharing links and a link to open the library in Microsoft 365.

03Choose library: your SharePoint sites
Choose library searches your sites, team sites included. No addresses to copy: open the site you want.

04Pick the document library
The libraries of the site with their free space. Use switches the drive to that library and tests it again.
05Project files in SharePoint
Files attached to the Office Design project went to Projects / Office Design in the library, each checked with QuickXorHash before Odoo freed its own copy. The Drive button of the project shows them.
06Added in SharePoint, shown on the project
A site manager saved a photo and a snag list into the project folder in SharePoint. The delta feed brought both to the project with a chatter note, ready to preview. Sharing links are logged here too.
07A Microsoft sharing link for the customer
Microsoft sharing link on a file or a record folder: view or edit, anyone or your organization, expiry date. The link is created in SharePoint, noted in the chatter and can be revoked at any time.
08Every step in the sync log
Uploads with their QuickXorHash verification, the folders created for new projects and the delta checks that imported changes, per drive.
Included apps
Odoo installs these Viyug Infotech apps together with Cloud Drive OneDrive & SharePoint.
Questions about Cloud Drive OneDrive & SharePoint
App only or signed-in user?
App only suits companies: an administrator consents once, Odoo signs in as the app and nothing breaks when an employee leaves. Signed-in user suits a personal OneDrive or when no administrator is available.
Can Odoo be limited to one SharePoint site?
Yes. Give the app the Sites.Selected application permission and let an administrator grant it write access to that site; then use App only with the site address.
What about Microsoft Teams files?
Every team has a SharePoint site. Search it in Choose library and pick its Documents library: channel folders live there.
Is a file deleted in SharePoint gone in Odoo?
Files that exist only in SharePoint are flagged and the record gets a warning, so they can be restored from the SharePoint recycle bin. Odoo never deletes its attachment for that.
Do I need a Python package?
No. The module talks to Microsoft Graph with the requests library Odoo already uses.
US Government or China tenants?
Choose the Microsoft cloud on the drive: GCC High, DoD or 21Vianet use their own sign-in and Graph addresses.
