[FIX] report: there are not always ids in get_pdf...
bzr revid: sle@openerp.com-20140403165051-e6sg419c19xv3w7b
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user