Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4311 Представления

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
5280
0
июн. 21
2358
2
мая 24
5171
2
июн. 22
4634
0
июн. 21
2588