Merge pull request #7289 from deepeshgarg007/doctype-fix
fix:Do not rename files and folders before rename for custom doctype
This commit is contained in:
commit
591e52aaf7
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