Odoo Help

0
1 Answer
0
Avatar

Niyas Raphy

--Niyas Raphy--
13282
| 6 6 9
Calicut, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to contact :  niyasraphyk@gmail.com

Niyas Raphy
7/16/17, 5:02 AM

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


Ask a Question
Writer
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now