Repository
OCA/knowledge · module folder · Try on Runboat
Module version
1.0.1
Category
Tools
Folder size
0.39 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/knowledge
Last tracking update
2026-08-07 08:09:22
Authors
Odoo Community Association (OCA), Cetmix
Maintainers
Odoo Community Association (OCA), Cetmix
Committers
Weblate, OCA-git-bot, oca-ci, Ivan Sokolov
Odoo dependencies
OCA/knowledge:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
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

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
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_key Char
    config_parameter='google_picker_api_key' string='Google API Key'
  • google_picker_app_id Char
    config_parameter='google_picker_app_id' default='odoo' string='Google App ID'
  • google_picker_client_id Char
    config_parameter='google_picker_client_id' string='Google Client ID'
  • is_active_google_api Boolean
    config_parameter='is_active_google_api' string='Google APIs'
Public methods (0)

No public methods.

New fields (5)
  • google_picker_access_token Char
    string='Google Access Token'
  • google_picker_active Boolean
    compute='_compute_google_picker_active'
  • google_picker_expires_date Integer
    string='Google Expires Date'
  • google_picker_mime_types Char
    string='Google Mime Types'
  • google_picker_scope Char
    default='https://www.googleapis.com/auth/drive.readonly' string='Google Scope'
Public methods (2)
  • 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