Skip to Content
Menu
This question has been flagged
1 Reply
412 Views

My own domain is registered on Cloudflare and I am using Odoo 18.2 SaaS. DNS have been setup and my eCommerce has been running fine since we started using Odoo early 2025. 

Two days ago, I tried to enable Proxy in Cloudflare so I can have proper caching and a better security later. Website kept running fine but the PDF (like Quote/Order confirmation) came out without images or style. I turned off proxy and the problem was gone.

Anyone here managed to set up the proper caching rules in Cloudflare to get everything working smoothly? Any help appreciated.O

Avatar
Discard
Author

Thanks. Indeed, there is no report.url parameter in our database. So if my web.base.url is https://www.mydomain.com, I need to add a new parameter report.url with value "https://mydomain.odoo.com? 

Would be my first try, yes, assuming you can reach your Odoo with https://mydomain.odoo.com

Best Answer

There is a System Parameter called report.url. This defines what URL is used to render documents. Chances are, this is not set in your database - which means, that the web.base.url will come in place - and your Cloudflare configuration prevents proper access.

To manage System Parameters, go to Settings, enable Developer Mode, then navigate to Technical -> System Parameters. If the Key report.url doesn't exist, create it and set its value to a URL that is not covered by Cloudflare (i.e. the original *.odoo.com url you got from Odoo).

Alternatively you can try to exclude the Odoo server IPs from running through Cloudflare checks. The IPs however will change over time, so you would need to update them in future.

Simply put, bottom line, the most probable cause is that the "Are you a bot?"-security-check can not be passed by Odoo when trying to render a report (i.e. loading style sheets and other resources, such as images).

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 25
240
1
May 25
378
1
Apr 25
399
0
Apr 25
297
0
Mar 25
794