[data import tool] check dates before import
This commit is contained in:
parent
d29d128746
commit
370289df90
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue