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
Se marcó esta pregunta
1
Responder
5996
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
0
feb 26
|
13 | ||
|
|
0
feb 26
|
36 | ||
|
|
0
feb 26
|
7 | ||
|
|
0
feb 26
|
197 | ||
|
|
1
feb 26
|
185 |