[Fix] Timesheet patch

This commit is contained in:
Rohit Waghchaure 2016-07-14 14:32:15 +05:30
parent b814a54f2f
commit de8418efe5
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ import frappe
from erpnext.manufacturing.doctype.production_order.production_order import make_timesheet, add_timesheet_detail
def execute():
if "note" not in frappe.db.get_table_columns("timesheet"):
frappe.reload_doc('projects', 'doctype', 'timesheet')
for data in frappe.get_all('Time Log', fields=["*"],

View File

@ -1,7 +1,7 @@
import frappe
def execute():
if frappe.db.table_exists("Time Sheet"):
if frappe.db.table_exists("Time Sheet") and not frappe.db.table_exists("Timesheet"):
frappe.rename_doc("DocType", "Time Sheet", "Timesheet")
frappe.rename_doc("DocType", "Time Sheet Detail", "Timesheet Detail")