Hello everyone
i have odoo16
and encountered this problem
_description = 'tracking the path of employee in our enterprise'
_inherit = 'hr.employee'
contract_ids = fields.One2many('hr.contract', 'employee_id', string='Employee Contracts',
compute="_compute_contracts")
jobs_id = fields.Many2one(string='the job', related='contract_ids.job_id')
i want to retrieve the jobs objects as field what should i specify the field type should i use to get the jobs_id entities stored in jobs_id