fix: Do not rename or move files for custom doctype
This commit is contained in:
parent
04c6ed3605
commit
1a005337d8
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue