mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
[Fix] Timesheet patch
This commit is contained in:
@@ -3,7 +3,6 @@ import frappe
|
|||||||
from erpnext.manufacturing.doctype.production_order.production_order import make_timesheet, add_timesheet_detail
|
from erpnext.manufacturing.doctype.production_order.production_order import make_timesheet, add_timesheet_detail
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
if "note" not in frappe.db.get_table_columns("timesheet"):
|
|
||||||
frappe.reload_doc('projects', 'doctype', 'timesheet')
|
frappe.reload_doc('projects', 'doctype', 'timesheet')
|
||||||
|
|
||||||
for data in frappe.get_all('Time Log', fields=["*"],
|
for data in frappe.get_all('Time Log', fields=["*"],
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
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", "Timesheet")
|
||||||
frappe.rename_doc("DocType", "Time Sheet Detail", "Timesheet Detail")
|
frappe.rename_doc("DocType", "Time Sheet Detail", "Timesheet Detail")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user