This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
[minor] rename_doc.py
version-14
Rushabh Mehta
8 years ago
parent
7ccbbce572
commit
3d4a05490f
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
frappe/model/rename_doc.py
+ 4
- 0
frappe/model/rename_doc.py
View File
@@ -21,6 +21,10 @@ def rename_doc(doctype, old, new, force=False, merge=False, ignore_permissions=F
if ignore_if_exists and frappe.db.exists(doctype, new):
return
if old==new:
frappe.msgprint(_('Please select a new name to rename'))
return
force = cint(force)
merge = cint(merge)
Write
Preview
Loading…
Cancel
Save