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 :-)