18 lines
733 B
Python
18 lines
733 B
Python
# -*- 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)",
|
|
)
|