Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4309 Prikazi

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
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
avg. 23
5279
0
jun. 21
2357
2
maj 24
5170
2
jun. 22
4633
0
jun. 21
2586