İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4611 Görünümler

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?

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç

For Example:

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eki 16
8922
3
Tem 25
3968
3
Tem 25
3282
1
Oca 24
1497
6
Eyl 19
11249