Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1538 Vistas

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
Descartar
Autor

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

Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 25
740
3
jun 25
573
1
jun 25
898
1
may 25
910
1
abr 25
1004