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

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
5282
0
6月 21
2358
2
5月 24
5174
2
6月 22
4634
0
6月 21
2590