Skip to Content
Menu
This question has been flagged
2 Replies
6448 Views

After I finally got wkhtmltopdf to work properly (setting report.url to "http://127.0.0.1:8069" did the job)

Now I have the same problem as before again when I add a dbfilter. 

The dbfilter I use is:--db-filter=^%d$ 

The moment I try to print a report I get the following warnings in the logging:

WARNING odoo.http: Logged into database 'test', but dbfilter rejects it; logging session out.
WARNING test odoo.addons.base.models.ir_actions_report: wkhtmltopdf: b'Exit with code 1 due to network error: ContentNotFoundError\n'

Also the layout of the report is not ok, just like when the system parameters were not set properly. 

could this be a problem with the nginx settings? or is this an odoo problem?

(wkhtmltopdf is 0.12.6 on debian 11)

Thanks in advance for the help with this.

Update: 

When I do a logging of the http request (in http.py) I always get http://test/  unless I print the report, then I get localhost:8069. And that is probably when the db-filter kicks in... So this is probably the cause. Now just find the solution :-)



Avatar
Discard
Author Best Answer

Ok, I found a solution for this. 

apparently  when using a proxy you need to set the parameter proxy_mode=True in the odoo.conf file. This actually makes a lot of sence.

This also takes care that links that are send in the mails contain the correct url and not an internal url.

Avatar
Discard
Best Answer

It could be also problem with wrong web.base.url in Settings / Technicals / System parameters 

Avatar
Discard

It worked thanks to your advice

Related Posts Replies Views Activity
1
May 24
2083
2
Feb 24
3419
2
Feb 24
5001
2
Oct 23
5442
2
Oct 23
58523