Skip to Content
Menú
This question has been flagged
2 Respostes
2507 Vistes

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

Avatar
Descartar
Autor Best Answer


@sahar tried changing date format too



Avatar
Descartar
Best Answer

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

Avatar
Descartar
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 Respostes Vistes Activitat
4
d’ag. 24
77215
2
de maig 25
1720
3
d’ag. 24
3861
0
d’oct. 23
2937
0
de set. 23
1335