Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
2464 Visualizações

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
Cancelar
Autor Melhor resposta


@sahar tried changing date format too



Avatar
Cancelar
Melhor resposta

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

Avatar
Cancelar
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.

Publicações relacionadas Respostas Visualizações Atividade
4
ago. 24
77094
2
mai. 25
1666
3
ago. 24
3815
0
out. 23
2880
0
set. 23
1308