From 037ce25f37f79242089939aa887abf5639c7f01b Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 4 Oct 2012 11:51:30 +0530 Subject: [PATCH] fixes in data import tool - restrict import upto 500 rows, commit only if import is successful, else rollback --- selling/doctype/lead/lead.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/selling/doctype/lead/lead.py b/selling/doctype/lead/lead.py index d0a715d204..d50a3488a7 100644 --- a/selling/doctype/lead/lead.py +++ b/selling/doctype/lead/lead.py @@ -67,7 +67,6 @@ class DocType: return ret def validate(self): - import string if self.doc.status == 'Lead Lost' and not self.doc.order_lost_reason: msgprint("Please Enter Lost Reason under More Info section") raise Exception @@ -80,7 +79,6 @@ class DocType: if not validate_email_add(self.doc.email_id): msgprint('Please enter valid email id.') raise Exception - def on_update(self): if self.doc.contact_date: