Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
2511 Prikazi

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
Opusti
Avtor Best Answer


@sahar tried changing date format too



Avatar
Opusti
Best Answer

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

Avatar
Opusti
Avtor

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.

Avtor

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

Related Posts Odgovori Prikazi Aktivnost
4
avg. 24
77238
2
maj 25
1724
3
avg. 24
3866
0
okt. 23
2942
0
sep. 23
1337