fix: Do not rename or move files for custom doctype

This commit is contained in:
deepeshgarg007 2019-04-16 09:29:29 +05:30
parent 04c6ed3605
commit 1a005337d8

View file

@ -343,7 +343,8 @@ class DocType(Document):
if merge:
frappe.throw(_("DocType can not be merged"))
if not frappe.flags.in_test and not frappe.flags.in_patch:
# Do not rename and move files and folders for custom doctype
if not self.custom and not frappe.flags.in_test and not frappe.flags.in_patch:
self.rename_files_and_folders(old, new)
def after_rename(self, old, new, merge=False):