Google Drive URL Attachment
document_url_google_drive · OCA/knowledge
Health
41/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 34 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.39 MB
Module directory on disk
Code analysis
2 migration notes
3 models
3 views
0 HTTP endpoints
Migration considerations
res_config_settings_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceres_users_google_picker_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module extends the functionality of the document_url module and allows you to attach a link to a file from your Google Drive
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form.inherit.document.url.google.drive | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
res_users_google_picker_view_form |
res.users (document_url_google_drive) | res.users | form | Inherits base.view_users_form |
res_users_google_picker_view_form_simple_modif |
res.users.simple_modif (document_url_google_drive) | res.users | form | Inherits base.view_users_form_simple_modif |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
add_attachment_google_drive(self, url, name, active_model, active_ids)@api.model
New fields (4)
-
google_picker_api_keyCharconfig_parameter='google_picker_api_key'string='Google API Key' -
google_picker_app_idCharconfig_parameter='google_picker_app_id'default='odoo'string='Google App ID' -
google_picker_client_idCharconfig_parameter='google_picker_client_id'string='Google Client ID' -
is_active_google_apiBooleanconfig_parameter='is_active_google_api'string='Google APIs'
No public methods.
New fields (5)
-
google_picker_access_tokenCharstring='Google Access Token' -
google_picker_activeBooleancompute='_compute_google_picker_active' -
google_picker_expires_dateIntegerstring='Google Expires Date' -
google_picker_mime_typesCharstring='Google Mime Types' -
google_picker_scopeChardefault='https://www.googleapis.com/auth/drive.readonly'string='Google Scope'
-
get_google_picker_params(self)Get Google Picker params :return: dict -
save_google_picker_access_token(self, access_token, expires_date)Save Google Picker access token :param access_token: str :return: None
Loading…