[FIX] report: avoid local file resources

Make sure building reports using local resources are disabled.
This avoids get different report result based on the system if the
given resources are or not present (e.g. custom style)
This commit is contained in:
Simon Lejeune
2018-07-03 10:53:42 +02:00
parent 3513e599a7
commit d255628ecf
+1 -1
View File
@@ -206,7 +206,7 @@ class IrActionsReport(models.Model):
:param set_viewport_size: Enable a viewport sized '1024x1280' or '1280x1024' depending of landscape arg.
:return: A list of string representing the wkhtmltopdf process command args.
'''
command_args = []
command_args = ['--disable-local-file-access']
if set_viewport_size:
command_args.extend(['--viewport-size', landscape and '1024x1280' or '1280x1024'])