Filesystem Storage For Microsoft Drives

fs_storage_ms_drive
REPOSITORY
REPOSITORYOCA/storage
GIT
GIThttps://github.com/OCA/storage.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/storage/tree/19.0/fs_storage_ms_drive
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYFS Storage
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSStéphane Bidoul, Laurent Mignon (ACSONE)
WEBSITE
WEBSITEhttps://github.com/OCA/storage
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-env:
    - server_environment
OCA/storage:
    - microsoft_drive_account
    - fs_storage
odoo/odoo:
    - microsoft_account
    - base_setup
    - base
    - web
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES fsspec>=2025.0.0
msgraphfs
fsspec>=2024.5.0
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This addon extends the functionality of the [fs_storage](https://github.com/OCA/storage/tree/18.0/fs_storage) module to allow the system to use Microsoft Drives (OneDrive, Sharepoint) as a storage backend.

All the interactions with Microsoft SharePoint are done through the Microsoft Graph API, which is a RESTful web API that enables you to access Microsoft Cloud service resources. To authenticate with Microsoft Graph, the addon uses the OAuth 2.0 protocol, which is a standard for authorization that allows third-party applications to access user data without exposing their credentials. All the calls are done using the credentials of the odoo user performing the action, which means that the user must have linked their Microsoft SharePoint account to Odoo in order to use this addon. See the [microsoft_drive_account](https://github.com/OCA/storage/tree/18.0/microsoft_drive_account) module documentation for more information on how to link a Microsoft Drive account to an Odoo user.

When calls are made to the Microsoft Graph API through this addon, the addon will check if the credentials are still valid. If they are not, it will refresh them using the refresh token that was obtained during the initial authentication process. This means that the user does not have to re-authenticate every time their credentials expire, as long as they have granted permission for Odoo to refresh their credentials.

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • update_refresh_token_on_user(self, res, client=None, db_name=None, user_id=None)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/storage
GIT
GIThttps://github.com/OCA/storage.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/storage/tree/18.0/fs_storage_ms_drive
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYFS Storage
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/storage
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-env:
    - server_environment
OCA/storage:
    - microsoft_drive_account
    - fs_storage
odoo/odoo:
    - microsoft_account
    - base_setup
    - base
    - web
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES fsspec>=2025.0.0
msgraphfs
fsspec>=2024.5.0
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This addon extends the functionality of the [fs_storage](https://github.com/OCA/storage/tree/18.0/fs_storage) module to allow the system to use Microsoft Drives (OneDrive, Sharepoint) as a storage backend.

All the interactions with Microsoft SharePoint are done through the Microsoft Graph API, which is a RESTful web API that enables you to access Microsoft Cloud service resources. To authenticate with Microsoft Graph, the addon uses the OAuth 2.0 protocol, which is a standard for authorization that allows third-party applications to access user data without exposing their credentials. All the calls are done using the credentials of the odoo user performing the action, which means that the user must have linked their Microsoft SharePoint account to Odoo in order to use this addon. See the [microsoft_drive_account](https://github.com/OCA/storage/tree/18.0/microsoft_drive_account) module documentation for more information on how to link a Microsoft Drive account to an Odoo user.

When calls are made to the Microsoft Graph API through this addon, the addon will check if the credentials are still valid. If they are not, it will refresh them using the refresh token that was obtained during the initial authentication process. This means that the user does not have to re-authenticate every time their credentials expire, as long as they have granted permission for Odoo to refresh their credentials.

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • update_refresh_token_on_user(self, res, client=None, db_name=None, user_id=None)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.