def METHOD_NAME(self, request, queryset):
    """
    Generate invoice report when data (queryset) is valid.
    """
    logger.info('Generating invoice report for model {}'.format(
        queryset.model
    ))
    data = self._get_report_data(request, queryset)
    content = self._get_pdf_content(data)
    file_name = '{}-{}.pdf'.format(
        self._invoice_report_name, data['id'],
    )
    return generate_pdf_response(content, file_name)