تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2101 أدوات العرض

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.

الصورة الرمزية
إهمال
الكاتب

any idea on getting this working ???

الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال

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>

الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 25
2954
2
أغسطس 20
4773
2
يوليو 23
7116
0
يوليو 22
2959
1
مارس 23
4033