From 198cd5399b799ba5fc82a7adb8f95473175db9cc Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 22 Mar 2018 00:29:59 +0100 Subject: [PATCH] [FIX] fallback to libreoffice conversion when no server is configured fixes #200 --- report_py3o/models/py3o_report.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/report_py3o/models/py3o_report.py b/report_py3o/models/py3o_report.py index 66198f20..fce767cf 100644 --- a/report_py3o/models/py3o_report.py +++ b/report_py3o/models/py3o_report.py @@ -253,6 +253,9 @@ class Py3oReport(models.TransientModel): out_stream.seek(0) tmpl_data = out_stream.read() + if self.env.context.get('report_py3o_skip_conversion'): + return result_path + result_path = self._convert_single_report( result_path, model_instance, data )