Skip to Content
Menu
This question has been flagged
1 Atsakyti
3730 Rodiniai

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.

Portretas
Atmesti
Autorius 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')

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
rugp. 23
4437
0
birž. 21
1844
2
geg. 24
4696
2
birž. 22
3881
0
birž. 21
2028