Increasing Date Range Dropdown & Changing default date_of_retirement?

Hi,

I’ve realized that under HR > Employee the selection for date will only be available from 1 Jan 1946 to 31 Dec 2026. It is exactly 80 years for the range.

How can I customize to increase the range such as I need the year range from 1900 to 2100?

Besides that, the date_of_retirement in HR will be automatically set to 60 years after the birth date, how can I customize this to 56 years (as for my country) from the birth date?

You can also type (?)

you write your own script for setting Date of retirement to 56 years for that
set= “datetime.timedelta(20454)” instead of 21915

https://github.com/frappe/erpnext/blob/develop/erpnext/hr/doctype/employee/employee.py#L188-L194

1 Like

Can anyone guide me how to change this?