error fixed

This commit is contained in:
nabinhait 2011-07-07 16:14:28 +05:30
parent 1528fc0ee1
commit be5fc969c2

View file

@ -161,7 +161,7 @@ class DocList:
webnotes.msgprint('%s "%s" already exists' % (self.doc.doctype, self.doc.name))
# prompt if cancelled
if webnotes.conn.get_value(doc.doctype, doc.name, 'docstatus')==2:
if webnotes.conn.get_value(self.doc.doctype, self.doc.name, 'docstatus')==2:
webnotes.msgprint('[%s "%s" has been cancelled]' % (self.doc.doctype, self.doc.name))
webnotes.errprint(webnotes.utils.getTraceback())
raise e