[FIX] <base_report_auto_create_qweb> Fix travis

pull/195/head
oihane 2015-06-02 15:36:03 +02:00 committed by Alex Comba
parent ee7eb90b04
commit 255b2e4423
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class IrActionsReport(models.Model):
_("Template Name must contain at least a dot in it's name"))
report_xml = super(IrActionsReport, self).create(values)
if values.get('report_type') in ['qweb-pdf', 'qweb-html']:
report_views = self.env.context.get('report_views')
report_views = self.env.context.get('report_views', False)
suffix = self.env.context.get('suffix', 'copy')
report_name = values['report_name']
module = report_name.split('.')[0]