def get_report_list(module, is_standard=u'No'):
 reports = frappe.get_list(u'Report', fields=[u'name', u'ref_doctype', u'report_type'], filters={u'is_standard': is_standard, u'disabled': 0, u'module': module}, order_by=u'name')
 out = []
 for r in reports:
  out.append({u'type': u'report', u'doctype': r.ref_doctype, u'is_query_report': (1 if (r.report_type in (u'Query Report', u'Script Report')) else 0), u'label': _(r.name), u'name': r.name})
 return out

def get_report_list ( module , is_standard = u'No' ) : reports = frappe . get_list ( u'Report' , fields = [ u'name' , u'ref_doctype' , u'report_type' ] , filters = { u'is_standard' : is_standard , u'disabled' : 0 , u'module' : module } , order_by = u'name' ) out = [ ] for r in reports : out . append ( { u'type' : u'report' , u'doctype' : r . ref_doctype , u'is_query_report' : ( 1 if ( r . report_type in ( u'Query Report' , u'Script Report' ) ) else 0 ) , u'label' : _ ( r . name ) , u'name' : r . name } ) return out
returns list on new style reports for modules .