Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5272 Vizualizări

Local and the production server shows report differently even if the installed wkhtmltopdf is same.


My local machine is having ubuntu Ubuntu 24.04 LTS with python 3.12.3. I have the latest odoo 17 from github. As per the documentation https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb



Now the installed wkhtmltopdf shows 

wkhtmltopdf 0.12.6.1 (with patched qt)


In the cloud server, we have used latest odoo17 docker image and the wkhtmltopdf package is same as the above.


When I try to print a custom invoice report, the layout is different form what I get in my local server. Wha could be the possible issue

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Fonts might be installed locally but not on the cloud server. Verify if the fonts used in your report are available on both systems. You can use a command like fc-list to check installed fonts.

Install the necessary fonts on the cloud server. You can find most common fonts in Ubuntu repositories.

If using custom fonts, embed them within the report or ensure a common fallback font is available on both systems.

Hope it helps!

Imagine profil
Abandonează
Autor

font used is "Tajawal" which is available in the fonts list which odoo provides in the document layout configuration

Cel mai bun răspuns

Your local installation will need to have a System Parameter created for reports to work correctly.

See https://www.odoo.com/documentation/17.0/developer/tutorials/backend.html#reporting


Imagine profil
Abandonează

You can also set report.url to "https://0.0.0.0:8069" in most cases.

Autor

still the same. "https://0.0.0.0:8069" didn't work

Related Posts Răspunsuri Vizualizări Activitate
3
aug. 24
2893
1
aug. 25
1728
2
aug. 25
300
0
mar. 25
2165
1
mar. 25
2249