Hello all
We are having a problem on our self hosted site
Anytime we pick a party to create either a sales or purchase transaction we get the error message below
Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 939, in call
return fn(*args, **newargs)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/party.py”, line 34, in get_party_details
company, posting_date, price_list, currency, doctype, ignore_permissions)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/party.py”, line 39, in _get_party_details
out = frappe._dict(set_account_and_due_date(party, account, party_type, company, posting_date, doctype))
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/party.py”, line 167, in set_account_and_due_date
“due_date”: get_due_date(posting_date, party_type, party, company)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/party.py”, line 275, in get_due_date
template_name = get_pyt_term_template(party, party_type, company)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/party.py”, line 374, in get_pyt_term_template
customer.customer_group, fieldname=‘payment_terms’)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py”, line 439, in get_value
order_by, cache=cache)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py”, line 483, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py”, line 615, in _get_values_from_table
as_dict=as_dict, debug=debug, update=update)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py”, line 166, in sql
self._cursor.execute(query, values)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py”, line 165, in execute
result = self._query(query)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py”, line 321, in _query
conn.query(q)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 860, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 1061, in _read_query_result
result.read()
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 1349, in read
first_packet = self.connection._read_packet()
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 1018, in _read_packet
packet.check_error()
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 384, in check_error
err.raise_mysql_exception(self._data)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/err.py”, line 107, in raise_mysql_exception
raise errorclass(errno, errval)
InternalError: (1054, u"Unknown column ‘payment_terms’ in ‘field list’")
Is their anyone that can throw light on what the issue is?
@tundebabzy any insight into what we need to do to payment terms to make this error message dissapear ?
Regards