Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
363 Widoki

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

Awatar
Odrzuć
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.

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
2811
3
lip 25
630
1
cze 25
2085
1
sie 25
998
1
kwi 25
1642