Minor fix in reloading email template

This commit is contained in:
Nabin Hait 2018-04-24 17:50:10 +05:30
parent 53b1125820
commit 673b75fbe3

View file

@ -4,4 +4,4 @@ from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.table_exists("Standard Reply") and not frappe.db.table_exists("Email Template"):
rename_doc('DocType', 'Standard Reply', 'Email Template')
frappe.reload_doc('setup', 'doctype', 'email_template')
frappe.reload_doc('email', 'doctype', 'email_template')