Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1967 Prikazi

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
Opusti
Best Answer

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
Opusti
Avtor

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.

Related Posts Odgovori Prikazi Aktivnost
1
feb. 24
1978
1
jul. 23
2865
3
dec. 23
18649
1
feb. 22
5642
0
avg. 21
2137