Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4183 Zobrazení

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šit
Autor Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
3
srp 23
5129
0
čvn 21
2270
2
kvě 24
5056
2
čvn 22
4480
0
čvn 21
2469