Merge pull request #6353 from rohitwaghchaure/patch_fix_for_timesheet
[Fix] Timesheet patch
This commit is contained in:
commit
ae9990cb81
@ -1,8 +1,9 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
for doctype in ['Time Log Batch', 'Time Log Batch Detail', 'Time Log']:
|
if frappe.db.table_exists("Time Log"):
|
||||||
frappe.delete_doc('DocType', doctype)
|
frappe.db.sql("""delete from `tabDocType`
|
||||||
|
where name in('Time Log Batch', 'Time Log Batch Detail', 'Time Log')""")
|
||||||
|
|
||||||
report = "Daily Time Log Summary"
|
report = "Daily Time Log Summary"
|
||||||
if frappe.db.exists("Report", report):
|
if frappe.db.exists("Report", report):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user