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
회신
5083
화면
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
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
Change position chatter
해결 완료
|
|
1
8월 25
|
150 | |
|
4
7월 25
|
1473 | ||
|
1
7월 25
|
797 | ||
|
2
7월 25
|
821 | ||
|
1
7월 25
|
1944 |