Skip to Content
Menu
This question has been flagged
2 Replies
3972 Views

In the time off module, I need to disable dates prior to today's date so that employees do not mistakenly request leave for a date that is already gone.

How can the old dates be disabled? I am using Odoo 13.

Avatar
Discard
Best Answer
Hello dear,
You can do it by adding the following code to the field in xml file
options="{'datepicker':{'maxDate': 'now'}}"
Avatar
Discard
Related Posts Replies Views Activity
0
Jul 24
205
1
May 24
588
1
Nov 23
392
0
Dec 21
2270
3
Jun 24
586