Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4900 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
5858
0
jun. 21
2935
2
mai. 24
5746
2
jun. 22
5240
0
jun. 21
3080