Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3803 Visualizzazioni

How can i get datetime now on qweb report

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore Risposta migliore

Thank you! This my code

<span t-esc="time.strftime('%Y-%m-%d %H:%M:%S'')"/> 
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 17
15866
0
apr 24
1883
0
gen 24
1656
0
gen 24
1344
4
nov 23
6003