コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5096 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 25
90
1
8月 25
277
4
7月 25
1620
1
7月 25
913
2
7月 25
930