İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2062 Görünümler

settings > Technical > Templates > Email templates.

am using ${object.display_name} and it shows the complete username and leave date
eg user1 on Full Day Leaves 2022-2023: 0.50 days


I only need user1 in the mail template. For eg user1 one leave 0.5 days

Avatar
Vazgeç
En İyi Yanıt

Try with  object.employee_id.name 

In the template editor, up to version 15, you have a tab that says "dynamic placeholder generator" that helps you search for the required fields.

You also have the "settings/Technical/Models" menu option that shows the existing fields in each model. Note that "employee" is a related model that is accessed by the "employee_id" relation field.

Avatar
Vazgeç
Üretici

Thanks a lot, that worked. Are there any variable list, i need more such variables like morning session or afternoon session leave etc.

You can see my edited answer. I hope this will help you.

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Şub 24
2147
1
Tem 23
3038
3
Ara 23
18796
1
Şub 22
5830
0
Ağu 21
2251