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

I'm having a problem that no report/invoice is created with a template.

Odoo is running on ubuntu 18.04 LTS

wkhtmltopdf version is 0.12.1.3 (with patched qt)

created symlinks for it 

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin

sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin


Created the system parameters:

web.base.url.freeze 

True

report.url

http://0.0.0.0:8080


and changed

web.base.url

http://0.0.0.0:8080


I'm still getting the error:

Exit with code 1 due to network error: ConnectionRefusedError


Can some one help me


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

I'm also using a NginX reverse proxy. If I change the port to 8069 I'm getting session expiaration Errors and from wkhtmltopdf : network error: ContentNotFound.

Tác giả

If I disable NginX and access odoo with server_ip:8069 and have the system parameters http://0.0.0.0:8069, it works, but I need it to work with NginX on port 80.

Tác giả

Updated wkhtmltopdf to version 0.12.5 (with patched qt) and still not working

Tác giả Câu trả lời hay nhất

After trying every possible configuration, I debugged the ir_action_report.py, disabled removing the temporary files. Seen that it uses links to access the template style. Accessing the css site from the server with w3m didn't work, tried pinging it didn't work from the server.

The problem was that the network administrator forgot to enable/configure DNS doctoring.  

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 20
7951
2
thg 2 24
15093
1
thg 12 19
7956
0
thg 11 19
5519
1
thg 7 19
3350