From 3a917639c84b37459a419b4db28a0dcdd9982afd Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Thu, 3 Apr 2014 18:50:51 +0200 Subject: [PATCH] [FIX] report: there are not always ids in get_pdf... bzr revid: sle@openerp.com-20140403165051-e6sg419c19xv3w7b --- addons/report/models/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))