TIP: You can type at any time to perform a new search.
Microsoft account for Drive
microsoft_drive_account · OCA/storage
- Repository
- OCA/storage · module folder · Try on Runboat
- Module version
- 2.0.0
- Category
- Uncategorized
- Folder size
- 0.51 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/storage
- Last tracking update
- 2026-08-07 09:06:25
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- Stéphane Bidoul, Laurent Mignon (ACSONE), OCA-git-bot, Nithwith
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- fs_storage_ms_drive
- Description
This addon allows the user to link their Microsoft Drive account to Odoo. The stored credentials are then used by other addons to perform actions on Drive as the logged-in user.
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
microsoft_drive_reset_account_form_view |
microsoft.drive.account.reset.form.view | microsoft.drive.account.reset | form | New |
res_users_form_view |
res.users.from.view | res.users | form | Inherits base.view_users_form |
res_users_simple_form_view |
res.users.from.view | res.users | form | Inherits base.view_users_form_simple_modif |
HTTP endpoints (2)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/ms_drive_account/status |
MicrosoftAuth.check_user_connected |
user | json | POST | |
| (inherited route override) | MicrosoftAuth.oauth2callback |
inherited | http | ALL | sudo |
Models touched (4)
New fields (1)
-
user_idMany2one → res.usersrequired=True args: 'res.users'
-
reset_account(self)
New fields (0)
No new fields.
Public methods (1)-
generate_refresh_token(self, service, authorization_code)@api.model
New fields (3)
-
drive_microsoft_client_idCharconfig_parameter='microsoft_drive_client_id'default='' args: 'Microsoft Drive Client_id' -
drive_microsoft_client_scopeCharconfig_parameter='microsoft_drive_client_scope'default='' args: 'Microsoft Drive Scope' -
drive_microsoft_client_secretCharconfig_parameter='microsoft_drive_client_secret'default='' args: 'Microsoft Drive Client_key'
No public methods.
New fields (5)
-
microsoft_drive_oauth2_non_interactiveBooleandefault=Falsehelp="If set, this user will not go through the interactive OAuth2 authorization flow; The requested token will be requested to the authentication server directly using client credentials flows. (scope: 'https://graph.microsoft.com/.default', grante_type: 'client_credentials')"string='Microsoft Drive OAuth2 (non-interactive)' -
microsoft_drive_rtokenCharcopy=Falsegroups='base.group_system' args: 'Microsoft Drive Refresh Token' -
microsoft_drive_statusSelectioncompute='_compute_microsoft_drive_status'copy=Falsedefault='not_connected'store=True args: [('not_connected', 'Not connected'), ('connected', 'Connected')], 'Microsoft Drive Connection Status' -
microsoft_drive_tokenCharcopy=Falsegroups='base.group_system' -
microsoft_drive_token_validityDatetimecopy=False
-
SELF_READABLE_FIELDS(self)@propertyExtend the set of user fields that are allowed in sudo mode when a user reads their own profile. The check is all-or-nothing: if any requested field is not in this list, sudo is not applied and restricted fields will raise access errors. -
action_drive_disconnect(self)Disconnect the user from Drive. -
get_drive_authentication_url(self, from_url: str) -> str
Loading…