'Return Records of particular Email Template\'s Model'

@api.model
def _get_records(self):

    template_id = self._context.get('template_id')
    default_res_id = self._context.get('default_res_id')
    if (not template_id):
        return []
    template = self.env['mail.template'].browse(int(template_id))
    records = self.env[template.model_id.model].search([], limit=10)
    records |= records.browse(default_res_id)
    return records.name_get()
