From da7fb70009dd877126527419dab19dd7930a0dad Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Tue, 30 Aug 2016 01:41:35 +0530 Subject: [PATCH] [Patch] Fixed error unknown column 'type' in 'field list' --- erpnext/patches/v7_1/update_component_type.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v7_1/update_component_type.py b/erpnext/patches/v7_1/update_component_type.py index f57b1d151d..aecbc9fac2 100644 --- a/erpnext/patches/v7_1/update_component_type.py +++ b/erpnext/patches/v7_1/update_component_type.py @@ -2,6 +2,7 @@ import frappe from frappe.utils import flt def execute(): + frappe.reload_doc('hr', 'doctype', 'salary_component') sal_components = frappe.db.sql(""" select DISTINCT salary_component, parentfield from `tabSalary Detail`""", as_dict=True)