[data import tool] check dates before import

This commit is contained in:
Rushabh Mehta 2013-11-15 13:37:06 +05:30
parent d29d128746
commit 370289df90

View file

@ -385,7 +385,10 @@ def upload(rows = None, submit_after_import=None, ignore_encoding_errors=False,
doclist = get_doclist(row_idx)
try:
webnotes.local.message_log = []
if len(doclist) > 1:
if len(doclist) > 1:
for d in doclist:
check_record(d, d.get("parenttype"), doctype_dl)
if overwrite and webnotes.conn.exists(doctype, doclist[0]["name"]):
bean = webnotes.bean(doctype, doclist[0]["name"])
bean.ignore_links = ignore_links