march.p03 patch fix

This commit is contained in:
Rushabh Mehta 2013-03-11 14:34:05 +05:30
parent 4b9d11563b
commit d5ce93dbff

View file

@ -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)