Skip to content
Snippets Groups Projects
Commit 5456e19f authored by Walid's avatar Walid
Browse files

[FIX] base: wkhtml2pdf multiple documents


Steps to reproduce:
- set up a header with company logo
- print 20 sale orders in arabic

Bug:
header disapears on most pages

Fix:
add a setting to allow users to increase the delay before printing

opw-3217155

closes odoo/odoo#122850

X-original-commit: 5d18944b
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: default avatarWalid Hanniche (waha) <waha@odoo.com>
parent 164a1157
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,8 @@ class IrActionsReport(models.Model):
command_args.extend(['--disable-smart-shrinking'])
# Add extra time to allow the page to render
command_args.extend(['--javascript-delay', '1000'])
delay = self.env['ir.config_parameter'].sudo().get_param('report.print_delay', '1000')
command_args.extend(['--javascript-delay', delay])
if landscape:
command_args.extend(['--orientation', 'landscape'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment