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

Please help! I made a custom report and I tried it on my local db before uploading it in a live server with the same db. It was working properly in my local db but not in the live server's db. I tried the html view in the server and the report format was there but it was not the same when I download it as pdf. Then I tried it in a different db in the same server and the format is working properly. 

Ảnh đại diện
Huỷ bỏ

How to link custom paper format in QWEB Reports:

In this tutorial I am going to show you how to add or link custom paper format in your newly/existing QWEB Reports. Before adding or linking custom paper format in QWEB reports I want to tell you why we need this custom paper format.

Reference: https://goo.gl/kCH93K

Please check wkhtmltopdf in your server.

Tác giả

Hi Sehrish, I already linked my custom paper format to my report.

Tác giả

Hi Mital Vaghani, I already checked the wlhtmtopdf in my server and I think if that's the problem then the other databases on my server should also be affected but it's not.

Câu trả lời hay nhất

Hi,

Please do the following settings in your server,

  1. Go to Settings->Techincal->Parameters->system parameters
  2. Create a record with Key-> report.url and Value: http://yourURL:8069

Thank you

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

I already did that but it's not working.

Câu trả lời hay nhất

Hi Sarah: Check the odoo log file to see if it is triggering any errors.

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

I do have an error on my log file but I thought it wasn't related to this case. Here: https://imge.to/i/15xLh

Try the solution suggested in this link.Even though it was for an earlier version it may work in your case. Try it on a backup copy of the database first.

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

Tác giả

Even after solving this problem, the problem with the report still exists. I restored my database to a different server and it's working fine but when I restore it again in the same server where the problem exists, the report still do not have a format just like this example---> https://i.stack.imgur.com/tjNQ8.png

Go to Settings and click on "Activate the developer mode (with assets)". Then go to "Open Developer Tools" (the bug icon on the top left of the screen) and select "Regenerate Assets Bundles".

*top right of the screen

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
3341
0
thg 7 22
1864
0
thg 1 20
634
0
thg 7 19
2767
1
thg 10 18
8150