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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
5561
Visualizzazioni
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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
0
ott 25
|
321 | ||
|
|
0
ott 25
|
297 | ||
|
|
2
ott 25
|
357 | ||
|
|
2
ott 25
|
5855 | ||
|
Delivery Note Management
Risolto
|
|
2
ott 25
|
604 |