コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4552 ビュー

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
8863
3
7月 25
3858
3
7月 25
3177
1
1月 24
1445
6
9月 19
11152