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

loan_manager_loan.py

Blame
  • loan_manager_loan.py 1,48 Kio
    # Copyright 2023- Le Filament (https://le-filament.com)
    # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
    
    from odoo import models, fields
    
    
    class Loan(models.Model):
        _inherit = "loan.manager.loan"
    
        # ------------------------------------------------------
        # Fields declaration
        # ------------------------------------------------------
        contract_id = fields.Many2one(
            "financial.contract", readonly=True, ondelete="cascade"
        )
        # ------------------------------------------------------
        # SQL Constraints
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Default methods
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Computed fields / Search Fields
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Onchange / Constraints
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # CRUD methods (ORM overrides)
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Actions
        # ------------------------------------------------------
    
        # ------------------------------------------------------
        # Business methods
        # ------------------------------------------------------