跳至内容
菜单
此问题已终结
2 回复
2398 查看

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
76852
2
5月 25
1604
3
8月 24
3717
0
10月 23
2786
0
9月 23
1234