Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
325 Zobrazení

Hi,

I want to check from Odoo API( or any other way) whether My Odoo instance is hostes on Odoo sh or on-premises.
Is there any way to do this?

Thanks

Anju

Avatar
Zrušit
Autor

It return cloudflare for me in server key for odoo sh url.

Autor

Hi,


It did not work. It did not return server in reponse.

Nejlepší odpověď

You can try using 

import requests

url = "odoo_instance.com"
response = requests.get(url)
print(response.headers)

If the instance is hosted on Odoo.sh, the response headers usually contain:

'Server': 'Odoo.sh'

Other instances (like odoo.com SaaS or on-premise deployments) may have different headers that can help identify the hosting environment.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 25
2782
3
čvc 25
582
1
čvn 25
2039
1
srp 25
973
1
dub 25
1624