Skip to Content
मेन्यू
This question has been flagged
1 Reply
4363 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
अग॰ 23
5297
0
जून 21
2372
2
मई 24
5204
2
जून 22
4660
0
जून 21
2601