跳至内容
菜单
此问题已终结
1 回复
5605 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
10月 25
346
0
10月 25
329
2
10月 25
391
2
10月 25
5907
2
10月 25
617