Odoo-Tutorial/loan_management/models/borrower.py
2025-06-21 09:44:01 +07:00

20 lines
659 B
Python

from odoo import models, fields
class ResPartner(models.Model):
_inherit = 'res.partner'
is_borrower = fields.Boolean(string='Is Borrower',default=True)
gender = fields.Selection([
('male', 'Male'),
('female', 'Female'),
('other', 'Other')
], string='Gender')
date_of_birth = fields.Date(string='Date of Birth')
job = fields.Char(string='Occupation')
monthly_income = fields.Float(string='Monthly Income')
marital_status = fields.Selection([
('single', 'Single'),
('married', 'Married'),
('divorced', 'Divorced'),
('widowed', 'Widowed'),
], string='Marital Status')