跳至内容
菜单
此问题已终结
1 回复
4395 查看

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.

形象
丢弃
编写者 最佳答案

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')

形象
丢弃
相关帖文 回复 查看 活动
3
8月 23
5315
0
6月 21
2390
2
5月 24
5214
2
6月 22
4679
0
6月 21
2618