Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2060 Vizualizări

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns


@sahar tried changing date format too



Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
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.

Related Posts Răspunsuri Vizualizări Activitate
4
aug. 24
75264
2
mai 25
1139
3
aug. 24
3246
0
oct. 23
2277
0
sept. 23
1014