Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3288 Zobrazení

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.            

Avatar
Zrušit
Nejlepší odpověď

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



Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 25
1396
0
lis 24
2029
0
bře 24
1886
1
pro 23
7934
1
úno 22
9102