تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
337 أدوات العرض

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
يوليو 25
2790
3
يوليو 25
601
1
يونيو 25
2051
1
أغسطس 25
976
1
أبريل 25
1626