I am working on a new module. How do I get information from openerp-server.conf in my python codes? for example smtp_server info. Thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
5567
มุมมอง
In Python you get openerp-sever.conf file information using the below code:-
from openerp.tools.config
import config
class sample(osv.osv):
_name = "sample"
dbUser = config.get("db_user")
https://www.odoo.com/forum/help-1/question/how-to-get-value-from-conf-file-47217#answer-49259
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
0
ต.ค. 25
|
328 | ||
|
|
0
ต.ค. 25
|
310 | ||
|
|
2
ต.ค. 25
|
372 | ||
|
|
2
ต.ค. 25
|
5872 | ||
|
Delivery Note Management
แก้ไขแล้ว
|
|
2
ต.ค. 25
|
605 |