CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I am testing a fresh install of Odoo 8.0 on Ubuntu 14.04 - all works OK apart from PDF report which are formatted incorrectly, missing graphics (sort of compressed text only), if switched to HTML reports works fine. WKHTMLTOPDF works fine in generating pdf from external pages. I am not sure how to debug this problem.
Anybody had a similar experience?
Chris, the problem is caused by your internal network setup. Its simply because Odoo cannot access your CSS and there for the graphics are not added and it takes longer to load the PDF. The solution however is very easy:
1. Go to settings > Technical > Parameters > System parameters
2. Make a new paramater
- Name: web.base.url.freeze
- Value: True
3. Edit the parameter web base.url and place the ip on http://0.0.0.0:8069
4. Refresh and everything is fixed.
You can read more about this in my original topic which is caused by the same problem as you: https://www.odoo.com/forum/help-1/question/why-does-my-odoo-wait-for-more-than-2-minutes-after-clicking-on-pay-now-ecommerce-63715
Note: if you ever want to use the mass mailing module you'll also need to add some patches and a second parameter, which you can find an answer for here: https://www.odoo.com/forum/help-1/question/mass-mailing-campaigns-do-not-track-opened-and-replied-e-mails-64705 or otherwise mass mailings won't work correct either.
I was having a similar issue and the answer of Yenthe put me in the right path:
1. Go to Settings > Technical > Parameters > System parameters
2. Check the url and ports Values of all parameters.
My problem was in the web.base.url.report parameter that having the value http://0.0.0.0:8080 when my odoo instance run on port 8069. Changing that for the right port works like charm for me and the pdf render correctly.
I hope this help and solve your problem too.
I have also encountered this issue. An image in a report appearing perfectly fine in my browser as html but not as a pdf. In my scenario 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 odoo.
About This Community
Odoo Training Center
|Asked: 11/22/14, 8:34 PM|
|Seen: 8459 times|
|Last updated: 11/14/17, 10:15 AM|