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") student_ref = fields.Many2one('school.student', string="Student") 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") frequency = fields.Selection([ ('monthly', 'Monthly'), ('quarterly', 'Quarterly'), ('yearly', 'Yearly') ], string="Fee Frequency") amount_paid = fields.Float(string="Amount Paid")