[FIX] Report should not have name None.pdf.

bzr revid: tpa@tinyerp.com-20120919091507-5aeo3eynubmfl3lo
This commit is contained in:
Turkesh Patel (Open ERP)
2012-09-19 14:45:07 +05:30
parent cfa035e25a
commit 224374edd2
+1 -1
View File
@@ -1922,7 +1922,7 @@ class Reports(View):
report = zlib.decompress(report)
report_mimetype = self.TYPES_MAPPING.get(
report_struct['format'], 'octet-stream')
file_name = None
file_name = action.get('name', None)
if 'name' not in action:
reports = req.session.model('ir.actions.report.xml')
res_id = reports.search([('report_name', '=', action['report_name']),],