Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2555 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ส.ค. 24
77436
Date format in Dashboard แก้ไขแล้ว
2
พ.ค. 25
1787
3
ส.ค. 24
3914
0
ต.ค. 23
2981
0
ก.ย. 23
1379