Always convert report when output format is different from input
issue11183 review387811002 (grafted from 2bbc59e018bc055448f8aad503e72598cd2fa105) --HG-- branch : 6.0
This commit is contained in:
1 parent
5c35bcc193
commit
b0c4ded8e6
1 file changed
+1
-1
@@ -342,7 +342,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_')
|
||||
|
||||
Reference in new issue
Block a user