Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4227 Vistas

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
ago 23
5195
0
jun 21
2299
2
may 24
5096
2
jun 22
4529
0
jun 21
2492