Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
10548 Lượt xem

I know this question repeated many times but I really have a strange situation, I installed Odoo-Nightly (also tried odoo-Github) on a production server many times but WKHTMLTOPDF didn't render the header and footer for reports, I installed the same ISO of Ubuntu 14 server with same steps of installing odoo on a VMWARE for both Odoo-Github and Odoo-Nightly, reports printed well, I tried to reinstall a fresh copy of Ubuntu on the production  server but reports in pdf still not printing the header and the footer (only printing them in Html).

Any one has an idea about the previous issue?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Finally I found the solution, the issue was with the used port in the url, in my production server I used another port behind a proxy, so I followed #JayVora steps from Serpent Co, he mentioned the solution in the following discussion link:

https://github.com/odoo/odoo/issues/1105


Thanks Mr.JayVora

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

1. The version of WKHTMLTOPDF must be version 0.12.1 and needs to be manually downloaded from http://download.gna.org/wkhtmltopdf/0.12/0.12.1

2. The URL you use to get to server in the web client must match the parameter web.base.url

Verify this via Settings --> Technical --> Parameters --> System Parameters

Ảnh đại diện
Huỷ bỏ
Tác giả

Yes dear my issue is with the web.base.url parameter, thanks a lot

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 16
5703
0
thg 3 25
1881
1
thg 3 25
2008
2
thg 7 24
4513
1
thg 5 24
2953