Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4320 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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')

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
aug. 23
5283
0
iun. 21
2359
2
mai 24
5179
2
iun. 22
4637
0
iun. 21
2591