Skip to Content
Menu
This question has been flagged
1 Reply
1937 Views

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
Discard
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
Discard
Author

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 Replies Views Activity
1
Feb 24
1928
1
Jul 23
2779
3
Dec 23
18561
1
Feb 22
5570
0
Aug 21
2072