Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2045 Tampilan

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
Buang
Penulis

any idea on getting this working ???

Penulis Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang

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>

Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Feb 25
2886
2
Agu 20
4707
2
Jul 23
7013
0
Jul 22
2892
1
Mar 23
3934