İçereği Atla
Menü
Bu soru işaretlendi
5 Cevaplar
17672 Görünümler

Hi;

When I want to print any report , I get a page without the header and the footer ..

I don't touch the file layouts.xml and the wkhtmltopdf is well install ( I use Odoo 9 on ubuntu )

I tried to change the port of the server but the problem still persist ..

Please help me ..

Avatar
Vazgeç

If you still have the problem, I can try to help you for free. contact me on skype (live:akhilpsivan)

Missing report.url causing the problem ? add report.url in the system parameters and see.
link: https://www.youtube.com/watch?v=lC9p_QJUW1Q&t=32s

Üretici En İyi Yanıt

Thank you ALL ..

I uninstalled the wkhtmltopdf then I installed it again ,

and now it's OK ..

 

Avatar
Vazgeç
En İyi Yanıt

This might be related to the paperformat?

You will find some ideas to solve your problem here: https://www.odoo.com/forum/help-1/question/custom-header-div-class-header-overlaps-with-report-body-div-class-page-in-custom-sales-order-report-91294

 

Avatar
Vazgeç
En İyi Yanıt

hi, 

hear the problem was installation of wkhtmltopdf 

i have same issue in odoo 16 finally i corrected by proper installation of wkhtmltopdf

first we have to install wkhtmltopdf ubuntu 22 terminal

      1.    apt install wkhtmltopdf

      2. wkhtmltopdf --version 

      whether its 0.12.6 remove and download 0.12.5

      3.wget https://github\\\.com/wkhtmltopdf/wkhtmltopdf/releases/download/0\\\.12\\\.5/wkhtmltox_0\\\.12\\\.5\\\-1\\\.bionic_amd64\\\.deb

     \\\ 4\\\.sudo\\\ dpkg\\\ \\\-i\\\ \\\ wkhtmltox_0\\\.12\\\.5\\\-1\\\.bionic_amd64\\\.deb

sometimes\\\ it\\\ may\\\ error\\\ then\\\ try\\\ to\\\ install\\\ one\\\ or\\\ two\\\ things 

    \\\ 1\\\.wget\\\ http://archive\\\.ubuntu\\\.com/ubuntu/pool/main/o/openssl/libssl1\\\.1_1\\\.1\\\.1\\\-1ubuntu2\\\.1\\\~18\\\.04\\\.22_amd64\\\.deb

   \\\ 2\\\.sudo\\\ dpkg\\\ \\\-i\\\ libssl1.1_1.1.1-1ubuntu2.1~18.04.22_amd64.deb

    3.sudo apt-get install xfonts-75dpi

    4.sudo apt-get update

    5.apt --fix-broken install


finally confirm  the "wkhtmltopdf version is  0.12.5"

Avatar
Vazgeç
En İyi Yanıt

Ive the same issue using odoo ce 10 
working in windows server 
any help plz 

Avatar
Vazgeç
En İyi Yanıt

Hi, I went inside the code and I found that :
1) I found where  is called and header and footer and called through parameters --header-html and --footer-html

2) I got a warning message in odoo.log (_logger.warning('wkhtmltopdf: %s' % err) in the python source) :

The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-odoo'

the message is quite clear :
parameter --header-html is ignored,
so it is "normal" that I have no header in my pdf file

after that, I also got an issue about the wkhtmltopdf version, so I post the complete solution there : [[https://www.odoo.com/fr_FR/forum/aide-1/wkhtmltopdf-failed-error-code-6-message-the-switch-header-spacing-is-not-support-using-unpatched-qt-error-when-sending-mail-99853]]

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 23
2734
2
May 17
6679
1
Mar 15
7107
0
Mar 15
3374
2
Şub 24
5751