diff --git a/addons/report/models/report.py b/addons/report/models/report.py index 11937235a77..261050d98a8 100644 --- a/addons/report/models/report.py +++ b/addons/report/models/report.py @@ -375,6 +375,8 @@ class Report(osv.Model): :returns: Content of the pdf as a string """ command_args = [] + if wkhtmltopdf_state == "ok": + command_args.extend(['--viewport-size', '1024x768']) # Passing the cookie to wkhtmltopdf in order to resolve internal links. try: