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

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

形象
丢弃
相关帖文 回复 查看 活动
2
8月 25
217
0
8月 25
305
1
8月 25
695
1
8月 25
538
4
7月 25
1912