Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2007 Vues

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
Ignorer
Auteur Meilleure réponse


@sahar tried changing date format too



Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Auteur

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.

Auteur

I wanted it in 10-Oct-2023 format. Is %d/%b/%Y the correct format for that.

Publications associées Réponses Vues Activité
4
août 24
75083
2
mai 25
1066
3
août 24
3192
0
oct. 23
2186
0
sept. 23
962