Merge branch 'develop' into datetime-timezone-fix
This commit is contained in:
commit
3d6b8610d8
1 changed files with 3 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ def rename_doc(
|
|||
|
||||
if doctype=='DocType':
|
||||
rename_doctype(doctype, old, new, force)
|
||||
update_customizations(old, new)
|
||||
|
||||
update_attachments(doctype, old, new)
|
||||
|
||||
|
|
@ -174,6 +175,8 @@ def update_user_settings(old, new, link_fields):
|
|||
else:
|
||||
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):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue