This question has been flagged
2 Replies
897 Views

https://freeimage.host/i/Hg6J5Rp

I am creating an email template including leave start, end date etc. How to include whether halfday leave is afternoon or morning session in the mail.
When a leave is requested there's an option to request for halfday morning/afternoon.

Avatar
Discard
Author

any idea on getting this working ???

Author Best Answer

Thank you,

this is how it looks in email template - https://freeimage.host/i/HrJPiAu

in the email template preview it shows nothing - https://freeimage.host/i/HrJPiAu

Avatar
Discard
Best Answer

Hello Charles,

I hope you are doing well.

You can display in which half leave employee is unavailable in the afternoon or morning session in the mail.

Find Example in the comment.

I hope this can help you.

Thanks & Regards,
Email:   odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

Avatar
Discard

Please find code here :-
For Example -
Note - By Default request_date_from_period field is set to ‘am’ from the py side.

<t t-set="period" t-value="object.request_date_from_period"/>
<t t-if="period == 'am'">
<p>Morning</p>
</t>
<t t-else="">
<p>Afternoon</p>
</t>

Author

Thank you,

this is how it looks in email template - https://freeimage.host/i/HrJPiAu

in the email template preview it shows nothing - https://freeimage.host/i/HrJPiAu