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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
1
返信
5073
ビュー
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
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
4
7月 25
|
1308 | ||
|
1
7月 25
|
628 | ||
|
2
7月 25
|
638 | ||
|
1
7月 25
|
1824 | ||
|
2
7月 25
|
232 |