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
This question has been flagged
1
Odgovori
6084
Prikazi
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi| Related Posts | Odgovori | Prikazi | Aktivnost | |
|---|---|---|---|---|
|
|
0
mar. 26
|
5 | ||
|
|
1
feb. 26
|
1163 | ||
|
|
0
feb. 26
|
435 | ||
|
|
0
feb. 26
|
37 | ||
|
|
0
feb. 26
|
7 |