Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4304 Visualizações

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
Cancelar
Autor Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
ago. 23
5276
0
jun. 21
2357
2
mai. 24
5170
2
jun. 22
4633
0
jun. 21
2586