[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:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user