Skip to Content
मेन्यू
This question has been flagged
1 Reply
4793 Views

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

Avatar
Discard
Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
1
अग॰ 25
608
0
अक्तू॰ 22
595
4
फ़र॰ 24
8632
3
दिस॰ 19
5351
0
मार्च 24
10123