summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-04-24 15:44:26 +0200
committerDenis Ledoux <dle@odoo.com>2015-04-24 15:55:35 +0200
commit3c61ee5c68e3796bb29d2521123f2a867c9cc157 (patch)
treec659afa4bb98cef574bc046c053703695f961018 /addons/analytic_user_function/analytic_user_function_view.xml
parent296130fbd30e2603211ea7ce18137d32505290f0 (diff)
[FIX] report: random disappearance of headers/footers
This issue is related to the wkhtmltopdf issue https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2083 It seems there is a race condition in the Javascript file loading in wkhtmltopdf 0.12.x. The subst.js file put in the header/footer of reports was not always loaded when the page was being rendered, leading to the crash of the onload="subst()" attr in the body node, leading to the non-rendering of the header/footer. Replacing the script file by its content solves the issue. Increasing the --javascript-delay of the wkhtmltopdf executable (e.g. 1000 ms instead of 200 ms, the default value) seems to solve the problem as well, but will lead to obvious performance issues. We therefore choose to put the javascript code inline, as a workaround, the time the issue is solved in wkhtmltopdf, at least. closes #3047,#5548,#6207 opw-633161
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions