Skip to Content
मेन्यू
This question has been flagged
1 Reply
5126 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
अग॰ 25
538
1
अग॰ 25
471
4
जुल॰ 25
1795
1
जुल॰ 25
1018
2
जुल॰ 25
1050