getting this error in frappe hr v16 while clicking on overview, how to fix it , am on ubuntu 24.04.
also getting this error
App Versions
{
"frappe": "16.0.0-dev",
"erpnext": "16.0.0-dev",
"hrms": "17.0.0-dev"
}
Route
dashboard-view/Human Resource
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 121, in application
response = frappe.api.handle(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/__init__.py", line 61, in handle
data = endpoint(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/v1.py", line 40, in handle_rpc_call
return frappe.handler.handle()
^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 52, in handle
data = execute_cmd(cmd)
^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/__init__.py", line 1127, in call
return fn(*args, **newargs)
^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/typing_validations.py", line 36, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/dashboard.py", line 32, in wrapper
results = generate_and_cache_results(kwargs, function, cache_key, chart)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/dashboard.py", line 41, in generate_and_cache_results
results = function(
^^^^^^^^^
File "apps/hrms/hrms/hr/dashboard_chart_source/hiring_vs_attrition_count/hiring_vs_attrition_count.py", line 38, in get_data
get_records(from_date, to_date, "date_of_joining", filters.get("company"))
File "apps/hrms/hrms/hr/dashboard_chart_source/hiring_vs_attrition_count/hiring_vs_attrition_count.py", line 68, in get_records
data = frappe.db.get_list(
^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/database/database.py", line 828, in get_list
return frappe.get_list(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/__init__.py", line 1360, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/model/db_query.py", line 230, in execute
result = self.build_and_run()
^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/model/db_query.py", line 294, in build_and_run
args = self.prepare_args()
^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/model/db_query.py", line 333, in prepare_args
self.sanitize_fields()
File "apps/frappe/frappe/model/db_query.py", line 532, in sanitize_fields
lower_field = field.lower().strip()
^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'lower'
Request Data
{
"type": "POST",
"args": {
"chart_name": "Hiring vs Attrition Count",
"filters": "{\"time_interval\":\"Monthly\",\"company\":\"360Techsys (Demo)\"}",
"refresh": 1,
"time_interval": null,
"timespan": null,
"from_date": null,
"to_date": null,
"heatmap_year": null
},
"headers": {},
"error_handlers": {},
"url": "/api/method/hrms.hr.dashboard_chart_source.hiring_vs_attrition_count.hiring_vs_attrition_count.get_data",
"request_id": null
}
Response Data
{
"exception": "AttributeError: 'dict' object has no attribute 'lower'",
"exc_type": "AttributeError",
"_exc_source": "hrms (app)"
}
