Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
2529 Vues

We have just switched to Odoo and Odoo 16 and we have a huge problem when it comes to how Odoo renders the PDF. When looking on the reports in Studio everything looks fine and the letter head is visible on all the reports like Invoice, Order confirmation, delivery noters etc. But when Odoo renders the PDF for printing the letter head is gone from the PDFs and nether logo not our address are visible.

I have looked on the Internet and done everything mentioned like adding a report.url that is pointing to http://127.0.0.1:8069 and also tried localhost and 0.0.0.0 but with no fix in sight.

I really need some help to get Odoo up and running so I hoping someone has a solution to this problem.

Regards,

Lasse L.

Avatar
Ignorer
Meilleure réponse

Hi

Make sure that the Wkhtmltopdf is correctly installed in the system.

check this references for the installation of wkhtmltopdf

https://www.odoo.com/forum/help-1/wkhtmltopdf-how-do-i-install-0-12-5-1-the-one-odoo-needs-on-ubuntu-20-04-177412


Reports can be printed as PDF files using Odoo. Wkhtmltopdf makes it easier to create PDF reports from HTML data. The Qweb template reports are converted to HTML by the report engine, and the PDF report is produced by Wkhtmltopdf:

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt install -f


Hope this Helps

Regards

Avatar
Ignorer
Auteur Meilleure réponse

HI Bella and Kiran,

Many thanks for you suggestions and I can tell you it was as Bella suspected a faulty version of Wkhtmltopdf that was the root to the problem. I had installed the default one that came with Ubuntu 22.04 repository and not the one from Wkhtmltopdf own site. I completely misunderstood the description on the installation description on Odoo and thought the problem only was with Ubuntu 18.04.

After installing the right version from Wkhtmltopdf website everything works great and problem solved.

Many thanks both of you for taking the time to answer my question, very appreciated.

Regards,

Lasse L...

Avatar
Ignorer
Meilleure réponse

Hi Lasse Larsson ,

If your letterhead, logo, and address are not showing in the PDFs when printing, you can try adjusting the paper format settings by going to 

Settings -> Technical -> Reports -> select the report template 

Check and modify the paper format, and then save the changes.





Hope it helps,
Kiran K

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
sept. 21
1723
1
mai 18
3031
2
janv. 17
6077
3
mars 15
6930
2
oct. 24
1547