Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4316 Переглядів

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.

Аватар
Відмінити
Автор Найкраща відповідь

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')

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
серп. 23
5283
0
черв. 21
2358
2
трав. 24
5174
2
черв. 22
4634
0
черв. 21
2590