Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3660 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
août 23
4364
0
juin 21
1786
2
mai 24
4646
2
juin 22
3802
0
juin 21
1992