Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2126 Ansichten

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
Verwerfen
Autor

any idea on getting this working ???

Autor Beste Antwort

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
Verwerfen
Beste Antwort

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
Verwerfen

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>

Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Feb. 25
2994
2
Aug. 20
4798
2
Juli 23
7183
0
Juli 22
3020
1
März 23
4085