march.p03 patch fix
This commit is contained in:
parent
4b9d11563b
commit
d5ce93dbff
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ def rename_doc(doctype, old, new, debug=0, force=False):
|
|||
import webnotes.model.doctype
|
||||
from webnotes.model.code import get_obj
|
||||
|
||||
if not webnotes.conn.exists(doctype, old):
|
||||
return
|
||||
|
||||
# get doclist of given doctype
|
||||
doclist = webnotes.model.doctype.get(doctype)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue