diff --git a/addons/report/models/report.py b/addons/report/models/report.py index 421b6ffb22c..d98ab8d580f 100644 --- a/addons/report/models/report.py +++ b/addons/report/models/report.py @@ -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])