diff --git a/erpnext/patches/v4_0/update_account_root_type.py b/erpnext/patches/v4_0/update_account_root_type.py index 9947cb684db..1ec68a7d9b3 100644 --- a/erpnext/patches/v4_0/update_account_root_type.py +++ b/erpnext/patches/v4_0/update_account_root_type.py @@ -5,6 +5,8 @@ from __future__ import unicode_literals import frappe def execute(): + frappe.reoad_doc("accounts", "doctype", "account") + account_table_columns = frappe.db.get_table_columns("Account") if "debit_or_credit" in account_table_columns and "is_pl_account" in account_table_columns: frappe.db.sql("""UPDATE tabAccount SET root_type = CASE