Sélectionner une révision Git
res_config_settings.py NaN Gio
# Copyright 2021 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
url_enedis = fields.Char(
related="company_id.url_enedis",
string="Url API de la plateforme de production interne",
readonly=False,
)
url_auth = fields.Char(
related="company_id.url_auth",
string="Base Url API pour authorisation de connexion",
readonly=False
)
url_autocons = fields.Char(
related="company_id.url_autocons",
string="Base Url API pour l'autoconsommation",
readonly=False
)
# ------------------------------------------------------
# Fields declaration
# ------------------------------------------------------
# ------------------------------------------------------
# SQL Constraints
# ------------------------------------------------------
# ------------------------------------------------------
# Default methods
# ------------------------------------------------------
# ------------------------------------------------------
# Computed fields / Search Fields
# ------------------------------------------------------
# ------------------------------------------------------
# Onchange / Constraints
# ------------------------------------------------------
# ------------------------------------------------------
# CRUD methods (ORM overrides)
# ------------------------------------------------------
# ------------------------------------------------------
# Actions
# ------------------------------------------------------
# ------------------------------------------------------
# Business methods
# ------------------------------------------------------