Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2371 Vistas

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 Mejor respuesta


@sahar tried changing date format too



Avatar
Descartar
Mejor respuesta

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.

Publicaciones relacionadas Respuestas Vistas Actividad
4
ago 24
76806
2
may 25
1588
3
ago 24
3690
0
oct 23
2754
0
sept 23
1218