Employees Without Contacts # Find employees without partner employees_without_contact = self.env['hr.employee'].search([ ('work_contact_id', '=', False), ('user_id.partner_id', '=', False), ]) if employees_without_contact: warning_count = len(employees_without_contact) warning_records = employees_without_contact