mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 11:52:18 -06:00
[ADD]document_url_google_drive: attach document from Google Drive
This commit is contained in:
committed by
Ivan Sokolov
parent
82b8383a8d
commit
ea29d68258
26
document_url_google_drive/models/res_config_settings.py
Normal file
26
document_url_google_drive/models/res_config_settings.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright (C) 2023 Cetmix OÜ
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
is_active_google_api = fields.Boolean(
|
||||
string="Google APIs",
|
||||
config_parameter="is_active_google_api",
|
||||
)
|
||||
google_picker_client_id = fields.Char(
|
||||
string="Google Client ID",
|
||||
config_parameter="google_picker_client_id",
|
||||
)
|
||||
google_picker_api_key = fields.Char(
|
||||
string="Google API Key",
|
||||
config_parameter="google_picker_api_key",
|
||||
)
|
||||
google_picker_app_id = fields.Char(
|
||||
string="Google App ID",
|
||||
config_parameter="google_picker_app_id",
|
||||
default="odoo",
|
||||
)
|
||||
Reference in New Issue
Block a user