-
Notifications
You must be signed in to change notification settings - Fork 310
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
Excesive top margin downloading PDF documents #589
Comments
@josep-tecnativa @yajo @ap-wtioit Have you experienced anything like that? THX |
hm, i just tested in 16.0 with a fresh database installing account (Invoicing), we have usually no odoo_initial_lang set and use nginx instead of traefik. Edit: Yes i can confirm we are seeing the exact same thing with the images after #578 Tested by using a CI backup image from before that merge and the issue disappears when using the bullseye/wkhtmltopdf 0.12.5 image. Can you check what your output of this is:
|
I think that the best solution is to use 0.12.6.1 version, that is compatible with bookworm, but i have to test if it works properly. Once is tested i will do a PR in order to solve this issue.
After that i have done several tests and it prints properly. So i am going to fix this, using wkhtmltopdf 0.12.6.1 |
@josep-tecnativa thanks. FYI i have tested switching back to 0.12.5 and got that working (as a hotfix directly in doodba): ARG ODOO_VERSION
FROM ghcr.io/tecnativa/doodba:${ODOO_VERSION}-onbuild
USER root
ARG WKHTMLTOPDF_VERSION=0.12.5
ARG WKHTMLTOPDF_CHECKSUM='8feeb4d814263688d6e6fe28e03b541be5ca94f39c6e1ef8ff4c88dd8fb9443a'
RUN curl -SLo wkhtmltox.deb https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_${WKHTMLTOPDF_VERSION}-1.buster_amd64.deb
RUN curl -SLo libssl1.1.deb http://deb.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb
RUN dpkg -i libssl1.1.deb \
&& dpkg -i wkhtmltox.deb \
&& rm ./wkhtmltox.deb \
&& rm ./libssl1.1.deb
USER odoo This is still a hotfix, but we are now testing and it looks like it fixes the issue. Will prepare a PR as well but if you get 0.12.6.1 running that's fine as well. |
Hello, I just tested it and it works properly. Thank you all! |
Describe the bug
When you download a PDF (e.g. Preview or Invoice) for the first time it appears correctly, but when you download it again, the top margin increases.
It happens using doodba-copier-template and my private projects.
Paper format is not modified, all by default.
The parameter "report.url" is correctly configurated.
First download:
Second download:
To Reproduce
I am using doodba-copier-template, choosing Odoo version "16.0" and Postgresql version '13'.
Here is my copier-answers,yml:
Affected versions:
It affects on version 16.0 and 17.0.
Steps to reproduce the behavior:
The first one will be correct, but the second will have an excesive top margin.
Expected behavior
All the downloads like the first one, with a normal top margin.
Additional context
Ubuntu 22.04.
Docker version 24.0.7, build afdd53b.
The text was updated successfully, but these errors were encountered: