Google Drive URL Attachment

document_url_google_drive
REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/16.0/document_url_google_drive
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Ivan Sokolov
WEBSITE
WEBSITEhttps://github.com/OCA/knowledge
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:12:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/knowledge:
    - document_url
odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - google_account
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base_setup.res_config_settings_view_form
res_users_google_picker_view_form res.users (document_url_google_drive) res.users xpath Inherits base.view_users_form
res_users_google_picker_view_form_simple_modif res.users.simple_modif (document_url_google_drive) res.users xpath Inherits base.view_users_form_simple_modif
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