Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4626 Tampilan

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Agu 23
5562
0
Jun 21
2631
2
Mei 24
5432
2
Jun 22
4864
0
Jun 21
2848