İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4628 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Ağu 23
5564
0
Haz 21
2632
2
May 24
5434
2
Haz 22
4866
0
Haz 21
2848