Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3902 Visualizações

How can i get datetime now on qweb report

Avatar
Cancelar
Melhor resposta

use: <span t-esc="datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')"/>

Avatar
Cancelar
Autor Melhor resposta

Thank you! This my code

<span t-esc="time.strftime('%Y-%m-%d %H:%M:%S'')"/> 
Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
dez. 17
16046
0
abr. 24
2067
0
jan. 24
1813
0
jan. 24
1508
4
nov. 23
6224