odoo_18_Education_management/models/enrollment_fee_summary.py

22 lines
767 B
Python
Raw Normal View History

2025-07-29 05:25:05 +00:00
from odoo import models, fields, api
from odoo.exceptions import ValidationError
class EnrollmentFeeSummary(models.Model):
_name = 'school.enrollment.fee.summary'
_description = 'Fee Summary Line'
enrollment_id = fields.Many2one('school.enrollment', string="Enrollment")
total_fees = fields.Float(string="Total Fees")
paid_fees = fields.Float(string="Paid Fees")
fee_slip_amount = fields.Float(string="Fee Slip Amount")
due_fees = fields.Float(string="Due Fees")
fee_element = fields.Char(string="Fee Element")
2025-07-30 06:27:58 +00:00
2025-07-29 05:25:05 +00:00
frequency = fields.Selection([
('monthly', 'Monthly'),
('quarterly', 'Quarterly'),
('yearly', 'Yearly')
], string="Fee Frequency")
amount_paid = fields.Float(string="Amount Paid")