跳至内容
菜单
此问题已终结
1 回复
336 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
2
7月 25
2789
3
7月 25
601
1
6月 25
2049
1
8月 25
976
1
4月 25
1626