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

Hi Everyone,

I need a solution to get current URL in openerp v7. I paste my code hear,if anyone knows please reply.

from openerp.http import request

url = request.httprequest.environ['HTTP_REFERER']

It throws error like ImportError: No module named http

アバター
破棄
最善の回答

Hi

current_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')

Use the above code to get current URL in python.
Hope this may help you.

アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 25
604
0
10月 22
595
4
2月 24
8627
3
12月 19
5350
0
3月 24
10117