[minor] rename_doc.py

This commit is contained in:
Rushabh Mehta 2017-05-08 16:19:30 +05:30
parent 7ccbbce572
commit 3d4a05490f

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)