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?
To pytanie dostało ostrzeżenie
1
Odpowiedz
6786
Widoki
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')"/>
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
1
paź 16
|
10940 | ||
|
Take Users Timezone
Rozwiązane
|
|
3
mar 26
|
7390 | |
|
How to print datetime field Timezone not UTC
Rozwiązane
|
|
3
lip 25
|
6826 | |
|
|
1
gru 23
|
3337 | ||
|
Time & Date Issue
Rozwiązane
|
|
6
wrz 19
|
14449 |