-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Qweb reports missing css on pdf export #2934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, Thanks |
Log: 2014-10-06 16:05:28,568 23052 INFO demov8 werkzeug: 89.153.85.172 - - [06/Oct/2014 16:05:28] "POST /web/dataset/call_kw/account.invoice/fields_view_get HTTP/1.1" 200 - Report pdf - when is bad: Report html - when is good: No we dont use reverse proxy. Thanks |
looks like wkhtmltopdf does not use the right base url: could you check in settings > parameters > system parameters that the key web.base.url has a correct value? |
Hi, thanks for replying. The link for database is http://demov8.opencloud.pro and the url parameter is the same. What you suggest? |
Hi, Regards |
Parameter key "report.url" works for me only in debug mode. Why could this be happening? |
Note that v9 needs the debug mode enabled to allow you access the system settings. Also, I have verified that after adding the "report.url" value you need to log off/on again in order to see the reports working right. |
Why is there a need to do this? If there's no documentation in the installation to do it, then it's actually a bug. After the Wkhtml install it should work, otherwhise is a bug. This happens with every reversed proxy installation I make. |
Hi! This trouble is for people that use port redirect via firewall or some similar, and have a domain filter. |
@dansanti Could you explain more? I use mikrotik as a firewall and nat |
For Odoo 10 you require wkhtmltopdf 12.4. Cheers! |
@Ark74 I haven't seen that in the Documentation, could you please guide me to that information? |
Well I haven't seen that written either. Just download 12.4 untar it, uninstall 12.1 and copy the binary to /usr/bin Note: You need to set report.url to 127.0.0.1:8069 also. Then restart your the odoo service and you're good to go. |
Let me know it that works for you. |
Just to be clear: If you'd like to use 12.4, the right procedure to install it, as you need it with the patched QT, is this one: Install wkhtmltopdf dependencies: Install wkhtmltopdf |
El 19 de agosto de 2017 1:34:58 PM CDT, Gustavo Valverde <notifications@github.com> escribió:
**Just to be clear:**
Odoo **officially** recommends wkhtmltopdf 12.1:
https://github.com/odoo/odoo/wiki/Wkhtmltopdf
Using this unofficial version: https://nightly.odoo.com/extra/
If you'd like to use 12.4, the right procedure to install it, as you
need it with the **patched QT**, is this one:
Install wkhtmltopdf dependencies:
`sudo apt-get install openssl build-essential xorg libssl-dev
libxrender-dev git-core`
Install qt dependencies, see
http://qt-project.org/doc/qt-4.8/requirements-x11.html
`sudo apt-get install -y openssl build-essential libssl-dev
libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev
libfreetype6-dev fontconfig`
Install wkhtmltopdf
`wget
https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz`
`tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz`
`ln -s wkhtmltox/bin/wkhtmlto* /usr/bin`
Seems like you have figure it out +1
--
Luis
|
Hi All, I have search for weeks in the net but can not found any solution. |
ok thank you |
Guys, i'm facing the same issue with ODOO13, all my reports are printing without css and take a long time to print. [options] |
!Great it worked. |
Same here.! |
This error happens because of You can either change |
@gustavovalverde check this out |
Thanks a lot.! I managed to play around with the hosts file and got it to work. This kind of super valuable information should be on Odoo official docs. |
It looks as a specific case for what already stated in the docs: https://www.odoo.com/documentation/14.0/developer/howtos/backend.html
if you have |
The part about dbfilter is the one that's missing. It's almost a guess game. If you wouldn't tell me I wouldn't actually know. However, I believe that information should be part of these docs https://www.odoo.com/documentation/14.0/administration/install/deploy.html It's more related to the administration rather than development itself. |
@andrp92 it would be better if you make a PR with your proposial 😉 https://github.com/odoo/documentation/ |
hi @yelizariev On the server with the problem the only thing work is when "dbfilter" is off, and put report.url as 0.0.0.0:8069. |
Hi @yelizariev @bunhin, After adding the dbfilter option to ^%h$ in odoo conf. This is the settings to set in odoo : |
Hi,
All my Q-Web reports (invoice, sale order, purchase, etc) are missing the css in pdf export and are all good in html export... Can anyone please help? I am running ubuntu 14.04 and wkhtmltopdf 12.01... Next is a preview of the problem on the left, and the html export with the css tables on the right...
https://www.odoo.com/forum/help-1/question/qweb-reports-missing-css-on-pdf-export-64335
Thanks
The text was updated successfully, but these errors were encountered: