Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 11ba5f7160cd13f3bc1824bca5ec637730f926e7
  • 14.0 par défaut protégée
2 résultats

calendar_event.py

Blame
  • 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
        # ------------------------------------------------------