跳至內容
選單
此問題已被標幟
1 回覆
4823 瀏覽次數

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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
6月 22
11873
0
3月 15
3623
3
10月 22
5213
0
5月 18
4014
1
3月 15
4297