Browse Source

Merge branch 'develop' into wspace-new-design

version-14
Shariq Ansari 3 years ago
committed by GitHub
parent
commit
943f5af84c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      frappe/model/rename_doc.py

+ 3
- 0
frappe/model/rename_doc.py View File

@@ -80,6 +80,7 @@ def rename_doc(


if doctype=='DocType': if doctype=='DocType':
rename_doctype(doctype, old, new, force) rename_doctype(doctype, old, new, force)
update_customizations(old, new)


update_attachments(doctype, old, new) update_attachments(doctype, old, new)


@@ -174,6 +175,8 @@ def update_user_settings(old, new, link_fields):
else: else:
continue continue


def update_customizations(old: str, new: str) -> None:
frappe.db.set_value("Custom DocPerm", {"parent": old}, "parent", new, update_modified=False)


def update_attachments(doctype, old, new): def update_attachments(doctype, old, new):
try: try:


Loading…
Cancel
Save