跳至內容
選單
此問題已被標幟
2 回覆
3767 瀏覽次數

How can i get datetime now on qweb report

頭像
捨棄
最佳答案

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

頭像
捨棄
作者 最佳答案

Thank you! This my code

<span t-esc="time.strftime('%Y-%m-%d %H:%M:%S'')"/> 
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 17
15828
0
4月 24
1853
0
1月 24
1627
0
1月 24
1321
4
11月 23
5944