[FIX] report: there are not always ids in get_pdf...

bzr revid: sle@openerp.com-20140403165051-e6sg419c19xv3w7b
This commit is contained in:
Simon Lejeune
2014-04-03 18:50:51 +02:00
parent 51a94afa5e
commit 3a917639c8
+1 -1
View File
@@ -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]))