Hi
The year drop down not showing any years at all!! Just blank field …Also I got this error AttributeError: ‘int’ object has no attribute ‘year’
App Versions
{
"erpnext": "14.0.0-beta.6",
"frappe": "14.0.0-beta.5"
}
Route
query-report/Monthly Attendance Sheet
Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 68, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 45, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1574, in call
return fn(*args, **newargs)
File "apps/erpnext/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py", line 577, in get_attendance_years
return "\n".join(cstr(entry.year) for entry in year_list)
File "apps/erpnext/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py", line 577, in <genexpr>
return "\n".join(cstr(entry.year) for entry in year_list)
AttributeError: 'int' object has no attribute 'year'
Request Data
{
"type": "POST",
"args": {},
"headers": {},
"error_handlers": {},
"url": "/api/method/erpnext.hr.report.monthly_attendance_sheet.monthly_attendance_sheet.get_attendance_years"
}
Response Data
{
"exception": "AttributeError: 'int' object has no attribute 'year'"
}