Sélectionner une révision Git
loan_manager_loan.py
-
Thibaud - Le Filament a rédigéThibaud - Le Filament a rédigé
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
# ------------------------------------------------------