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

Hello,

i want current page url from Odoo. because, I want't to send that link in Email.

Email Coding is Custom. Not Use Template.


How can i get current url.So, i send  link to Other User. they can login and page directly open.            

形象
丢弃
最佳答案

Use Javascript  for this purpose 

window.location.href

And also try using python

from openerp import http
# BASE URL
print http.request.env['ir.config_parameter'].get_param('web.base.url')
print http.request.httprequest

print http.request.httprequest.full_path



形象
丢弃
相关帖文 回复 查看 活动
1
5月 25
1434
0
11月 24
2091
0
3月 24
1917
1
12月 23
7981
1
2月 22
9148