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

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
590
0
10月 22
595
4
2月 24
8609
3
12月 19
5335
0
3月 24
10100