Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odoo report , missing header and footer in some page #6207

Closed
sandeepksrana opened this issue Apr 8, 2015 · 7 comments
Closed

Odoo report , missing header and footer in some page #6207

sandeepksrana opened this issue Apr 8, 2015 · 7 comments
Assignees

Comments

@sandeepksrana
Copy link

Hi
Odoo qweb report , missing header and footer in some page, while in first page and later on 7 pages it is there.

Have anyone faced this problem ...
Please let me know.. as i search everything ..

Thanks
Sandeep

@Cedric-Pigeon
Copy link
Contributor

@sandeepksrana Which version of wkhtmltopdf do you use ?

@sandeepksrana
Copy link
Author

it is latest one problem in some pages ... as i mentioned everything above

@hbto
Copy link
Contributor

hbto commented Apr 24, 2015

Hello @Cedric-Pigeon & @sandeepksrana

This is actually happening in runbot for odoo

In the link below there is an example on which of some reports this is happening.

https://docs.google.com/a/vauxoo.com/file/d/0B1w9gokcJL9hY2hkbTNjemhrQ1U/edit?usp=drivesdk

@hbto
Copy link
Contributor

hbto commented Apr 24, 2015

This issue is a duplicated of #5548

beledouxdenis added a commit that referenced this issue Apr 24, 2015
This issue is related to the wkhtmltopdf issue
wkhtmltopdf/wkhtmltopdf#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
@beledouxdenis
Copy link
Contributor

Closed with 3c61ee5.

@tejastank
Copy link

We same face issue, also footer is not stable at bottom, crap feature.

@tejastank
Copy link

Same issue yet found with latest odoo 10 version, was exist in 9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants