Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2353 Zobrazení

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
Zrušit
Autor Nejlepší odpověď


@sahar tried changing date format too



Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
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 Odpovědi Zobrazení Aktivita
4
srp 24
76773
2
kvě 25
1565
3
srp 24
3676
0
říj 23
2724
0
zář 23
1213