diff --git a/addons/report/models/report.py b/addons/report/models/report.py index 96296d50218..723c098ccb2 100644 --- a/addons/report/models/report.py +++ b/addons/report/models/report.py @@ -238,7 +238,7 @@ class Report(osv.Model): # qweb branding. As website editor is not yet splitted in a module independant from # website, when we print a unique report we can use the id passed in argument to # identify it. - if len(ids) == 1: + if ids and len(ids) == 1: reportid = ids[0] contenthtml.append(tuple([reportid, reportcontent]))