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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
@sahar tried changing date format too


You can change format by going to settings --> languages
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.
I wanted it in 10-Oct-2023 format. Is %d/%b/%Y the correct format for that.
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
4
oct. 25
|
79482 | ||
|
Date format in Dashboard
Résolu
|
|
2
mai 25
|
2294 | |
|
|
3
août 24
|
4502 | ||
|
|
0
oct. 23
|
3536 | ||
|
|
0
sept. 23
|
1821 |