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

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
Discard
Author

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

Author

Hi,


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

Best Answer

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
Discard
Related Posts Replies Views Activity
2
Jul 25
2785
3
Jul 25
601
1
Jun 25
2044
1
Aug 25
975
1
Apr 25
1626