Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • bf0b2384da2b45daad23d2f061c438b5012604b5
  • master par défaut protégée
  • hugo/utilite-sociale
  • migration
4 résultats

test.md

Blame
  • res_company.py 1,62 Kio
    # 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 ResCompany(models.Model):
        _inherit = "res.company"
    
        # ------------------------------------------------------
        # Fields declaration
        # ------------------------------------------------------
        url_enedis = fields.Char(string="Url API de la plateforme de production interne")
        url_auth = fields.Char(string="Base Url API pour authorisation de connexion")
        url_autocons = fields.Char(string="Base Url API pour l'autoconsommation")
    
        # ------------------------------------------------------
        # SQL Constraints
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Default methods
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Computed fields / Search Fields
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Onchange / Constraints
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # CRUD methods (ORM overrides)
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Actions
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Business methods
        # ------------------------------------------------------