Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5578 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 25
328
0
paź 25
311
2
paź 25
373
2
paź 25
5875
2
paź 25
605