UpStore

Troubleshooting Printing Report Issues

· Troubleshooting, Odoo

Troubleshooting Printing Report Issues

Troubleshooting Odoo Printing Report Issues

Printing report is running Off alignment, instead of per page, it’s showing about 3 quarters before cutting off to the next page

Error: 

  1. Printed report was out of alignment

Initial Analysis:

WkhtmltoPDF is showing the same verstion, compared to Development

Development: wkhtmltopdf 0.12.6.1 (with patched qt)

Live : wkhtmltopdf 0.12.6.1

Failure Reason:

from /var/log/odoo/odoo.log

WARNING test-myw odoo.addons.base.models.ir_actions_report: wkhtmltopdf: The switch —header-spacing, is not support using unpatched qt, and will be ignored.The switch —disable-smart-shrinking, 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-myw’

the issue is revolving around : https://www.odoo.com/documentation/17.0/developer/tutorials/backend.html#reporting

Whereby , some missing styles are not downloaded, the Patch QT will resolve the issue

How to Resolve this?

sudo apt-get install xfonts-75dpi

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox\_0.12.6.1-2.jammy\_amd64.deb

sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb

sudo apt —fix-broken install

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

then, check again

wkhtmltopdf —version OR wkhtmltopdf -V

Ready to streamline your operations?

Talk to our team about how UpStore can help your business.

    navigate open Esc close