'Get the first record of ir.actions.report.xml having the ``report_name`` as value for
the field report_name.'

@api.model
def _get_report_from_name(self, report_name):

    report_obj = self.env['ir.actions.report.xml']
    qwebtypes = ['qweb-pdf', 'qweb-html']
    conditions = [('report_type', 'in', qwebtypes), ('report_name', '=', report_name)]
    context = self.env['res.users'].context_get()
    return report_obj.with_context(context).search(conditions, limit=1)
