Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2622 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất


@sahar tried changing date format too



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 8 24
77753
2
thg 5 25
1854
3
thg 8 24
4045
0
thg 10 23
3050
0
thg 9 23
1427