From 81754954cb12db8fb37160e704f2e91e3bce303b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 7 Oct 2016 16:08:44 +0530 Subject: [PATCH] Update update_timesheet_communications --- erpnext/patches/v7_0/update_timesheet_communications | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v7_0/update_timesheet_communications b/erpnext/patches/v7_0/update_timesheet_communications index ac87d82698..203471ea8f 100644 --- a/erpnext/patches/v7_0/update_timesheet_communications +++ b/erpnext/patches/v7_0/update_timesheet_communications @@ -2,7 +2,7 @@ from __future__ import unicode_literals import frappe def execute(): - if frappe.db.table_exists("Time Log") and "employee" in frappe.db.get_table_columns("Time Log"): + if frappe.db.table_exists("Time Log"): timesheet = frappe.db.sql("""SELECT ts.name AS name, tl.name AS timelogname, tl.modified AS modified, tl.modified_by AS modified_by, tl.creation AS creation, tl.owner AS owner FROM