Community mailing list archives
Re: Wkhtmltpdf measures problemsby
@Brecht Verhaeghe :
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Distributor ID: Debian
Description: Debian GNU/Linux 8.0 (jessie)
wkhtmltopdf 0.12.2.1 (with patched qt)
@ Omprakash Maury : Thanks for the tutorial.
@ Gustavo Marino : Can you point me the code part (method) using this scale parameter ? did you this solution, and resized all standard reports ? maybe we can set a boolean and apply this scale parameter only for standard reports.
With Odoo settings, wkhtmltopdf uses an adaptative scale to render the its output.It is a parameter on wkhtmltopdf command execution call, in module report, hard coded in python source code.You can choose to remove this parameter. After that, measures will be absolut, and thus repetible, but almost all standard reports should be resized (using a different font size) and should be adjustedRegards2016-08-30 14:22 GMT-03:00 Brecht Verhaeghe <firstname.lastname@example.org>
Are both servers the same or is it desktop v.s. server?
I used to have this problem when moving from production to server environments. Some fonts that i couldn’t find in the server environment or some libs that i forgot to pip install…
I started using Docker containers and now all my deployment problems are gone.
I develop inside a debugging container. This one creates a thin debugging layer on top of my odoo container.
If i need an extra library, i add it to the docker file and rebuild everything.
Met vriendelijke groeten,
tel 0497/46 07 27
I've created a report with css using fixed measurments (not relative ones), so the purpose of this report is to create adress cards, used on the post office.
The problem is, when I fix adress cards height and width with pixels or centimeters, milimeters, it's considered differently from an odoo instance to another, knowing that the two have the same wkhtmltopdf version. It's like the one centimeter for wkhtmltopdf, is not the real one, that we know.
Is there anyone having the same problem ?
I'm using the more stable version : 0.12.1 on ubuntu 12.04 LTS 64 bit.
Consultant & Odoo Project Manager
TEL : +212 6-87 71 41 18