[FIX] base: fix print pdf with --test-file command

This commit is contained in:
Sébastien Theys
2018-12-18 13:02:06 +00:00
parent 6be0cdef98
commit 42ded05f4b
+1 -1
View File
@@ -612,7 +612,7 @@ class IrActionsReport(models.Model):
# In case of test environment without enough workers to perform calls to wkhtmltopdf,
# fallback to render_html.
if tools.config['test_enable']:
if tools.config['test_enable'] or tools.config['test_file']:
return self.render_qweb_html(res_ids, data=data)
# As the assets are generated during the same transaction as the rendering of the