Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4293 Visualizzazioni

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.

Avatar
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
ago 23
5266
0
giu 21
2346
2
mag 24
5162
2
giu 22
4618
0
giu 21
2577