コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
268 ビュー

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.

最善の回答

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
2736
3
7月 25
562
1
6月 25
2014
1
8月 25
957
1
4月 25
1610