mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
Merge pull request #6243 from rohitwaghchaure/timesheet_issue
[Patch] Check table exist
This commit is contained in:
@@ -2,6 +2,7 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
if frappe.db.table_exists("Time Log"):
|
||||||
timesheet = frappe.db.sql("""select tl.employee as employee, ts.name as name,
|
timesheet = frappe.db.sql("""select tl.employee as employee, ts.name as name,
|
||||||
tl.modified as modified, tl.modified_by as modified_by, tl.creation as creation, tl.owner as owner
|
tl.modified as modified, tl.modified_by as modified_by, tl.creation as creation, tl.owner as owner
|
||||||
from
|
from
|
||||||
|
|||||||
Reference in New Issue
Block a user