Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3768 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
15841
0
abr. 24
1855
0
jan. 24
1628
0
jan. 24
1323
4
nov. 23
5947