diff --git a/erpnext/patches/v7_0/set_naming_series_for_timesheet.py b/erpnext/patches/v7_0/set_naming_series_for_timesheet.py index 074621391e..a0522828c5 100644 --- a/erpnext/patches/v7_0/set_naming_series_for_timesheet.py +++ b/erpnext/patches/v7_0/set_naming_series_for_timesheet.py @@ -7,8 +7,8 @@ import frappe from frappe.custom.doctype.property_setter.property_setter import make_property_setter def execute(): - frappe.reload_doctype('Time Sheet') - frappe.reload_doctype('Time Sheet Detail') + frappe.reload_doc('projects', 'doctype','time_sheet') + frappe.reload_doc('projects', 'doctype', 'time_sheet_detail') make_property_setter('Time Sheet', "naming_series", "options", 'TS-', "Text") make_property_setter('Time Sheet', "naming_series", "default", 'TS-', "Text") \ No newline at end of file