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
4329 Widoki

I'm trying to make and invitation/referal link to my website app, so the user that sign in use the referal for some things, but I face that the server address I need to hardcode it in the controllers classes. Is there any functionality in Odoo that returns the current server address or domain name.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

I the technical / parameters / system parameters, there a entry named web.base.url

 that can be accessed through
self.env['ir.config_parameter'].sudo().get_param('web.base.url')

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sie 23
5283
0
cze 21
2360
2
maj 24
5182
2
cze 22
4638
0
cze 21
2592