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

How to retrive the current dbname and current hostname from odoo?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

From client point of view, you can send POST request to <hostname>/web/session/get_session_info with payload

{"jsonrpc":"2.0","method":"call","params":{"session_id":session_id},"id":"r1"}

with session_id (I assume you already get this).

From server point of view I think you already know a suitable answer : https://www.odoo.com/forum/help-1/question/how-do-i-get-information-from-openerp-server-conf-in-python-program-57987

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 25
3
2
ต.ค. 25
5270
Delivery Note Management แก้ไขแล้ว
2
ต.ค. 25
424
POS receipt template V19 แก้ไขแล้ว
2
ต.ค. 25
511
1
ต.ค. 25
503