Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
7 Odpowiedzi
23527 Widoki

hello,

I am working on several projects. My all projects are loading images on HTML and PDF versions of report. Only one project is not showing its images on PDF version. When i open the report it shows the logo on top but when PDF is generated it doesn't loads the image but showing value given in alt attribute. I am surfing internet for long time have tried a lot of solutions but nothings working. Is it some problem with WKHTMLtoPDF plugin intall on that server or some thing else.


I am using image as HTML tag not as background in odoo 10

Awatar
Odrzuć

you probably have path issue with your image.

if image show in other reports in well manner..then it's image size or image related prlbm..

Najlepsza odpowiedź

 I have also encountered this issue. An image in a report appearing perfectly fine in my html but not as a pdf.I found that it  turned out to be internal vs external name resolution. Adding http://0.0.0.0:8069 to web.base.url did in fact get my default logo to appear which gave me a clue that I was experiencing a name resolution issue. Be sure that your odoo server can in fact resolve it's external url and find itself or wkhtmltopdf will have issues fetching resources beyond the html passed to it by

https://www.odoo.com/forum/help-1/question/problem-with-qweb-reports-rendering-to-pdf-html-version-ok-68445

Awatar
Odrzuć
Autor

exactly it solved my issue.

Autor

Thanks Ahtesham bhai to help me here on odoo help instead of telling me directly while siting next to me....lol

I recently suffered this same issue on a system on different server than the NGINX reverse proxy that handles the web.base.url. To correct it, I had to add the report.url field in the system parameters with the http://127.0.0.1:<<xml-rpc port>>. Once it was in the system, everything worked well again.

Great. It worked. Thanks

Najlepsza odpowiedź

I had this issue with my installation on openSuSE Leap 42.3 which has an un-patched verison of  wkhtmltopdf. Installing the the patched packages solved my problem.

You can get the patched packages from:

http://am4computers.com/wordpress/archives/499

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 18
3796
0
lip 17
3158
2
wrz 24
1203
3
wrz 23
20373
1
mar 21
4437