跳至內容
選單
此問題已被標幟
2 回覆
2471 瀏覽次數

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.

相關帖文 回覆 瀏覽次數 活動
4
8月 24
77098
2
5月 25
1669
3
8月 24
3818
0
10月 23
2882
0
9月 23
1309