Filtering the Accounts Receivable report with a customer gives this issue on
Installed Apps
ERPNext: v12.1.6 (version-12)
Frappe Framework: v12.0.16 (version-12)
api/method/frappe.client.get_value?doctype=Customer&fieldname=%5B%22tax_id%22%2C%22customer_name%22%2C%22credit_limit%22%2C%22payment_terms%22%5D&filters=Adam+D&_=1573277599017:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
request.js:355 Traceback (most recent call last):
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/app.py", line 60, in application
response = frappe.api.handle()
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/handler.py", line 21, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/handler.py", line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/__init__.py", line 1036, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/client.py", line 88, in get_value
return frappe.db.get_value(doctype, filters, fieldname, as_dict=as_dict, debug=debug)
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/database/database.py", line 400, in get_value
order_by, cache=cache)
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/database/database.py", line 444, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/database/database.py", line 591, in _get_values_from_table
as_dict=as_dict, debug=debug, update=update)
File "/home/frappe/frappe-bench-12/apps/frappe/frappe/database/database.py", line 156, in sql
self._cursor.execute(query, values)
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result
result.read()
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read
first_packet = self.connection._read_packet()
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet
packet.check_error()
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/home/frappe/frappe-bench-12/env/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1054, "Unknown column 'credit_limit' in 'field list'")