[Patch] Fixed error unknown column 'type' in 'field list'

This commit is contained in:
Rohit Waghchaure 2016-08-30 01:41:35 +05:30
parent d260602cae
commit da7fb70009

View File

@ -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)