From c38d16b140e02d1db42e5f156549adf945ceefa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 3 Feb 2022 22:24:34 +0100 Subject: [PATCH] Always convert report when output format is different from input issue11183 review387811002 --- trytond/report/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/report/report.py b/trytond/report/report.py index 72eaea9aa0..36d2d303b2 100644 --- a/trytond/report/report.py +++ b/trytond/report/report.py @@ -357,7 +357,7 @@ class Report(URLMixin, PoolBase): and output_format == 'pdf'): return output_format, weasyprint.HTML(string=data).write_pdf() - if output_format in MIMETYPES: + if input_format == output_format and output_format in MIMETYPES: return output_format, data dtemp = tempfile.mkdtemp(prefix='trytond_')