[MIG] report_xlsx: Migration to 13.0

This commit is contained in:
Rod Schouteden
2019-10-01 10:25:59 +02:00
committed by Alex Cuellar
parent bfc46ffcb8
commit adb71709e1
6 changed files with 15 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ class ReportAction(models.Model):
report_model_name = "report.%s" % self.report_name
report_model = self.env.get(report_model_name)
if report_model is None:
raise UserError(_("%s model was not found" % report_model_name))
raise UserError(_('%s model was not found') % report_model_name)
return report_model.with_context(active_model=self.model).create_xlsx_report( # noqa
docids, data
)