From be5fc969c2d38e3c0863bdac484be409112c832f Mon Sep 17 00:00:00 2001 From: nabinhait Date: Thu, 7 Jul 2011 16:14:28 +0530 Subject: [PATCH] error fixed --- cgi-bin/webnotes/model/doclist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/model/doclist.py b/cgi-bin/webnotes/model/doclist.py index 7c258d0fd7..e4ecfc888e 100644 --- a/cgi-bin/webnotes/model/doclist.py +++ b/cgi-bin/webnotes/model/doclist.py @@ -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