Public release from ruodoo-project: 19.0 - 2026-05-10 21:19:01 UTC
This commit is contained in:
17
premium_client/models/res_config_settings.py
Normal file
17
premium_client/models/res_config_settings.py
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
premium_project_api_url = fields.Char(
|
||||
string="Project API URL",
|
||||
config_parameter="premium.project_api_url",
|
||||
help="Базовый URL инстанса Project, например https://project.example.com/newlead/ или только домен (маршрут добавится автоматически)",
|
||||
)
|
||||
premium_project_api_token = fields.Char(
|
||||
string="Project API token",
|
||||
config_parameter="premium.project_api_token",
|
||||
help="Токен, который проверяет Project (в заголовке X-API-Key)",
|
||||
)
|
||||
Reference in New Issue
Block a user