Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3297 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mai. 25
1429
0
nov. 24
2087
0
mar. 24
1915
1
dez. 23
7974
1
fev. 22
9147