from odoo import models, fields, api class SchoolFeeComponent(models.Model): _name = 'school.fee.component' _description = 'Fee Component' structure_id = fields.Many2one('school.fee.structure', string="Fee Structure") component_name = fields.Char(string="Component") amount = fields.Float(string="Amount")