Skip to Content
Menu
This question has been flagged
1 Reply
2739 Views

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
Discard
Author 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
Discard
Related Posts Replies Views Activity
3
Aug 23
3376
0
Jun 21
1252
2
May 24
3938
2
Jun 22
3189
0
Jun 21
1600