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

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

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

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 22
11894
0
thg 3 15
3630
3
thg 10 22
5223
0
thg 5 18
4020
1
thg 3 15
4308