'get the lastest contract'

def _compute_contract_id(self):

    Contract = self.env['hr.contract']
    for employee in self:
        employee.contract_id = Contract.search([('employee_id', '=', employee.id)], order='date_start    desc', limit=1)
