Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4289 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
aug. 23
5259
0
jun. 21
2339
2
mei 24
5150
2
jun. 22
4605
0
jun. 21
2574