Open Thatoo opened 8 months ago
I guess everything is about
WARNING libreerp odoo.addons.base.models.ir_actions_report: wkhtmltopdf: QSslSocket: cannot resolve CRYPTO_num_locks
When I look for this error on internet, I found that I should use wkhtmltopdf, at least 0.12.5 version.
Apparently, Yunohost installed
xxx@zzz:~$ wkhtmltopdf --version
wkhtmltopdf 0.12.4 (with patched qt)
Here, https://github.com/amra/DocumentationAsCode/issues/2, they mention also the idea of installing libssl1.0-dev
or compat-openssl10-devel.x86_64
[EDIT], Well libssl seems to be installed already :
xxx@zzz:~$ dpkg -l libssl-dev
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description
+++-================-================-============-================================================
ii libssl-dev:amd64 1.1.1w-0+deb11u1 amd64 Secure Sockets Layer toolkit - development files
Any idea?
Well, I don't get why I see a difference here :
xxx@zzz:~$ dpkg -l wkhtmltopdf
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description
+++-==============-============-============-===================================================================
ii wkhtmltopdf 0.12.6-1 amd64 Command line utilities to convert html to pdf or image using WebKit
xxx@zzz:~$ wkhtmltopdf --version
wkhtmltopdf 0.12.4 (with patched qt)
I solved the issue. Nothing need to be installed, just a key to add in system settings.
You need to activate devloppers tool go to Settings/system settings and add the key report.url
with the value http://0.0.0.0:8069
Here is a screenshot
Well I still get the same error in the log WARNING libreerp odoo.addons.base.models.ir_actions_report: wkhtmltopdf: QSslSocket: cannot resolve CRYPTO_num_locks
but the pdf render well
I wonder if it is possible to register that during the install process.
Describe the bug
Print to pdf is not nicely rendered, either I click on download or print.
Context
Steps to reproduce
Expected behavior
Get a downloaded or printed invoice similar to what the odoo template disply
Logs