Skip to Content
Menu
This question has been flagged
2 Replies
2409 Rodiniai

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

Portretas
Atmesti
Autorius Best Answer


@sahar tried changing date format too



Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius

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.

Autorius

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

Related Posts Replies Rodiniai Veikla
4
rugp. 24
76876
2
geg. 25
1610
3
rugp. 24
3734
0
spal. 23
2790
0
rugs. 23
1238