From 1528fc0ee1ba3f52942ecc17ec2b73478123e3cb Mon Sep 17 00:00:00 2001 From: nabinhait Date: Thu, 7 Jul 2011 15:23:43 +0530 Subject: [PATCH] error fixed --- cgi-bin/webnotes/model/doclist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi-bin/webnotes/model/doclist.py b/cgi-bin/webnotes/model/doclist.py index 36174d6282..7c258d0fd7 100644 --- a/cgi-bin/webnotes/model/doclist.py +++ b/cgi-bin/webnotes/model/doclist.py @@ -158,11 +158,11 @@ class DocList: try: self.doc.save(cint(self.doc.__islocal)) except NameError, e: - webnotes.msgprint('%s "%s" already exists' % (doc.doctype, doc.name)) + 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: - webnotes.msgprint('[%s "%s" has been cancelled]' % (doc.doctype, doc.name)) + webnotes.msgprint('[%s "%s" has been cancelled]' % (self.doc.doctype, self.doc.name)) webnotes.errprint(webnotes.utils.getTraceback()) raise e