[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 7cf29f04be
commit d5efba2561
+1 -1
View File
@@ -522,7 +522,7 @@ class Report(osv.Model):
:specific_paperformat_args: a dict containing prioritized wkhtmltopdf arguments
:returns: list of string representing the wkhtmltopdf arguments
"""
command_args = []
command_args = ['--disable-local-file-access']
if paperformat.format and paperformat.format != 'custom':
command_args.extend(['--page-size', paperformat.format])