Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5196 Vues

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

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
août 25
188
0
août 25
297
1
août 25
686
1
août 25
533
4
juil. 25
1903