Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4826 มุมมอง

Hello,


i want to refuse or delete or deactivate if be requested before specific days number of leave date, 

so like must create leave request before 15 days of current date


Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

For this you can add a validation on creating the leave request. And you can check whether the difference between current date and requested leave date,. If it is not 15, you can show a warning message else accept the leave request.

Otherwise you can add a automated action to check and refuse the leave, based on the create date and requested leave date.

Also you can check with this community module for the auto leave approval, making slight changes in the code may help you to achieve what you are looking for.

https://www.odoo.com/apps/modules/9.0/hr_holidays_leave_auto_approve/


Thanks


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 22
11876
0
มี.ค. 15
3624
3
ต.ค. 22
5213
0
พ.ค. 18
4014
1
มี.ค. 15
4297