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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Hello dear,
You can do it by adding the following code to the field in xml fileoptions="{'datepicker':{'maxDate': 'now'}}"
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Jul 24
|
205 | ||
|
1
May 24
|
588 | ||
|
1
Nov 23
|
392 | ||
|
0
Dec 21
|
2270 | ||
|
3
Jun 24
|
586 |