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

I have a Datetime field in Sale order, when i print sale report it shows me that field in UTC time, how can i convert it to users timezone?

頭像
捨棄
最佳答案

Hello Darth Vader,

You can get the date and time according to the user's timezone by using context_timestamp on report field.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

頭像
捨棄

For Example:

<p class="m-0" t-esc="context_timestamp(doc.confirmation_date).strftime('%m/%d/%Y, %H:%M:%S')"/>

相關帖文 回覆 瀏覽次數 活動
1
10月 16
8899
3
7月 25
3912
3
7月 25
3219
1
1月 24
1470
6
9月 19
11185