Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2121 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

any idea on getting this working ???

Tác giả Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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>

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 25
2975
2
thg 8 20
4787
2
thg 7 23
7174
0
thg 7 22
3011
1
thg 3 23
4064