Skip to Content
Menu
This question has been flagged
1 Odpoveď
3666 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
aug 23
4366
0
jún 21
1796
2
máj 24
4651
2
jún 22
3807
0
jún 21
1993