fixes in data import tool - restrict import upto 500 rows, commit only if import is successful, else rollback
This commit is contained in:
parent
97971c43e0
commit
037ce25f37
@ -67,7 +67,6 @@ class DocType:
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
import string
|
|
||||||
if self.doc.status == 'Lead Lost' and not self.doc.order_lost_reason:
|
if self.doc.status == 'Lead Lost' and not self.doc.order_lost_reason:
|
||||||
msgprint("Please Enter Lost Reason under More Info section")
|
msgprint("Please Enter Lost Reason under More Info section")
|
||||||
raise Exception
|
raise Exception
|
||||||
@ -81,7 +80,6 @@ class DocType:
|
|||||||
msgprint('Please enter valid email id.')
|
msgprint('Please enter valid email id.')
|
||||||
raise Exception
|
raise Exception
|
||||||
|
|
||||||
|
|
||||||
def on_update(self):
|
def on_update(self):
|
||||||
if self.doc.contact_date:
|
if self.doc.contact_date:
|
||||||
self.add_calendar_event()
|
self.add_calendar_event()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user