[FIX] fallback to libreoffice conversion when no server is configured

fixes #200
pull/695/head
Holger Brunn 2018-03-22 00:29:59 +01:00 committed by Alexis de Lattre
parent 48a1950821
commit 6f8ad2396d
1 changed files with 3 additions and 0 deletions

View File

@ -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
)