コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4488 ビュー

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
5418
0
6月 21
2504
2
5月 24
5299
2
6月 22
4774
0
6月 21
2701