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

Adapt Invoice Due Date Format to DD/MM/YYYY instead of YYYY/DD/MM in Email Templates



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

If you want to add the invoice due date in your email template, you will need to generate and use dynamic placeholders.

First, make sure the developer mode is active. Then, search for your email templates in Settings / Technical / Email / Templates, and open the template you wish to adapt (in my case Invoice: Send by Email)



Generate your due date placeholder and copy/paste it in your email body.



Though your date format settings are set up properly in your language settings, you see that the standard format for this placeholder is YYYY-MM-DD.

In order to use the DD-MM-YYYY format, you will need to use the following placeholder: ${object.invoice_date_due.strftime('%d/%m/%Y')}



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 21
3011
1
thg 10 22
4720
1
thg 4 24
1977
2
thg 12 23
2005
3
thg 10 23
8245