Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
300 Переглядів

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

Аватар
Відмінити
Автор

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

Автор

Hi,


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

Найкраща відповідь

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лип. 25
2748
3
лип. 25
569
1
черв. 25
2023
1
серп. 25
963
1
квіт. 25
1612