Skip to Content
Menú
This question has been flagged
2 Respostes
2634 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
77822
2
de maig 25
1874
3
d’ag. 24
4061
0
d’oct. 23
3065
0
de set. 23
1440