Skip to Content
Menú
This question has been flagged
1 Respondre
4286 Vistes

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
Descartar
Autor Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
3
d’ag. 23
5256
0
de juny 21
2336
2
de maig 24
5146
2
de juny 22
4597
0
de juny 21
2572