Skip to content
Snippets Groups Projects
Commit 5d18944b 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#121054

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent a1dffd3f
No related branches found
No related tags found
No related merge requests found
......@@ -332,7 +332,8 @@ class IrActionsReport(models.Model):
command_args.extend(['--header-line'])
# 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