Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4330 Visninger

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
Kassér
Forfatter Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
aug. 23
5283
0
jun. 21
2360
2
maj 24
5182
2
jun. 22
4638
0
jun. 21
2592