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

Hi All,

Can you please help me with why the qweb report header is not printing on every report

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

Custom report? Have you set the paper format? If it's a custom report do you have the calss="page" in your report?

<t t-foreach="docs" t-as="o">

<div class="page">

Check your wkhtmltopdf version. It is recommended to use 0.12.1

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

update wkhtmltopdf

sudo apt-get remove wkhtmltopdf
sudo apt-get autoremove

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

tar -xf {file_name}
sudo cp wkhtmltox/bin/wkhtmltoimage /usr/bin/
sudo cp wkhtmltox/bin/wkhtmltopdf /usr/bin/


restart odoo server/


reference

https://www.odoo.yenthevg.com/install-wkhtmltopdf-on-ubuntu/


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
7
thg 4 23
27585
1
thg 1 24
1195
1
thg 6 23
3403
1
thg 4 22
8865
1
thg 11 21
5404