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:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
5019
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Jul 25
|
119 | ||
|
0
Jul 25
|
121 | ||
|
1
Jul 25
|
245 | ||
|
1
Jul 25
|
402 | ||
|
0
Jul 25
|
370 |