from odoo import models, fields class FamilyDetails(models.Model): _name = "family.details" _description = "Family Details" _rec_name = "name" name = fields.Char(string="Full Name", required=True) contact_no = fields.Char(string="Contact No") dob = fields.Date(string="Date of Birth") location = fields.Char(string="Location") relation_type = fields.Selection([ ('father', 'Father'), ('mother', 'Mother'), ('spouse', 'Spouse'), ('kid1', 'Kid 1'), ('kid2', 'Kid 2'), ], string="Relation Type", required=True) employee_id = fields.Many2one('hr.employee')