Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
654 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 25
395
2
ก.ค. 25
3139
API xmlrpc - upload pdf bills to account แก้ไขแล้ว
3
ก.ค. 25
795
1
มิ.ย. 25
2310
1
ส.ค. 25
1196