Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2347 Widoki

How to format date in Odoo 16 both in content and subject fields?

${object.request_date_from.strftime('%d/%b/%Y')} is not working in odoo 16

Awatar
Odrzuć
Autor Najlepsza odpowiedź


@sahar tried changing date format too



Awatar
Odrzuć
Najlepsza odpowiedź

You can change format by going to settings --> languages

Awatar
Odrzuć
Autor

I tried that, still when the email template is previewed it shows default date format.

After press on Activate and Translate smart button it should work.

Autor

I wanted it in 10-Oct-2023 format. Is %d/%b/%Y the correct format for that.

Powiązane posty Odpowiedzi Widoki Czynność
4
sie 24
76764
2
maj 25
1560
3
sie 24
3670
0
paź 23
2710
0
wrz 23
1208