Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4860 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona

For Example:

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

Post correlati Risposte Visualizzazioni Attività
1
ott 16
9171
3
lug 25
4352
3
lug 25
3826
1
gen 24
1732
6
set 19
11723