Skip to content
Health
83/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by15/25
    1 module depends on it
  • Maturity18/25
    In 3 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.51 MB
Module directory on disk
Code analysis 0 migration notes 4 models 3 views 2 HTTP endpoints

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.

Dependencies

Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
fs_storage_ms_drive

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
/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_id Many2one → res.users
    required=True args: 'res.users'
Public methods (1)
  • 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_id Char
    config_parameter='microsoft_drive_client_id' default='' args: 'Microsoft Drive Client_id'
  • drive_microsoft_client_scope Char
    config_parameter='microsoft_drive_client_scope' default='' args: 'Microsoft Drive Scope'
  • drive_microsoft_client_secret Char
    config_parameter='microsoft_drive_client_secret' default='' args: 'Microsoft Drive Client_key'
Public methods (0)

No public methods.

New fields (5)
  • microsoft_drive_oauth2_non_interactive Boolean
    default=False help="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_rtoken Char
    copy=False groups='base.group_system' args: 'Microsoft Drive Refresh Token'
  • microsoft_drive_status Selection
    compute='_compute_microsoft_drive_status' copy=False default='not_connected' store=True args: [('not_connected', 'Not connected'), ('connected', 'Connected')], 'Microsoft Drive Connection Status'
  • microsoft_drive_token Char
    copy=False groups='base.group_system'
  • microsoft_drive_token_validity Datetime
    copy=False
Public methods (3)
  • SELF_READABLE_FIELDS(self)
    @property
    Extend 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…

Loading…