This question has been flagged
3 Replies
2894 Views

Hello,

 I am having issues with the PDF invoices that I am printing on my Odoo 8. all the quotations/invoices does not have the header and footer with company information when I use PDF. If I change to HTML, I can see the header and footer with the company details, but I cannot print the document, because it the only thing that I can do is to edit some information inside the quotation/invoice.

I did check some other docs in the forum, and followed the one below mentioned, and the PDF always have the footer and header information missing.


Is it possible to give me some help or guidance to solve this?

Thanks.

Avatar
Discard
Author Best Answer

Hi Pravitha, first of all that for your support. I checked the wkhtmltopdf version and I have the same version mentioned 0.12.1 and I checked the web.base.url I had the value as http://helptech:80 and changed it to http://localhost:80 and we have the same behaviour, there is no header and footer in the pdf document. Do you have any other thoughts regardings this?

Thanks in advance.

Regards,

Avatar
Discard
Best Answer

First you have to check which version of wkhtmltopdf is installed in your system using the below command in the terminal:

wkhtmltopdf -V

The version should be wkhtmltopdf 0.12.1

If the above step is fine then goto  

Settings--> Technical --> Parameters --> System Parameters--> find web.base.url and set its value to http://0.0.0.0<portno_of_odoo>

eg: in my case : http://localhost:8069

Then save and refresh the page and try to print, it should work.



Avatar
Discard
Author

Hi Pravitha, first of all that for your support. I checked the wkhtmltopdf version and I have the same version mentioned 0.12.1 and I checked the web.base.url I had the value as http://helptech:80 and changed it to http://localhost:80 and we have the same behaviour, there is no header and footer in the pdf document. Do you have any other thoughts regardings this?

Thanks in advance.

Regards,