Browse Source

[FIX] <base_report_auto_create_qweb> Fix travis

pull/195/head
oihane 10 years ago
committed by Alex Comba
parent
commit
255b2e4423
  1. 2
      base_report_auto_create_qweb/models/report_xml.py

2
base_report_auto_create_qweb/models/report_xml.py

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

Loading…
Cancel
Save