New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New data import #4601
New data import #4601
Conversation
d466b15
to
c3a6d14
Compare
frm.reload_doc(); | ||
} | ||
if (data.progress) { | ||
let progress_bar = $(cur_frm.dashboard.progress_area).find(".progress-bar"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cur_frm
=> frm
title: __('Download Template'), | ||
fields: [ | ||
{ | ||
"label": "Select Columns", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__('Select Columns')
frappe.model.with_doctype(frm.doc.reference_doctype, function() { | ||
if(frm.doc.reference_doctype) { | ||
// render select columns | ||
var parent_doctype = frappe.get_doc('DocType', frm.doc.reference_doctype); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frappe.get_meta(doctype)
"fieldtype": "HTML" | ||
} | ||
], | ||
primary_action: function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
primary_action: function(values) {
} | ||
], | ||
primary_action: function() { | ||
var data = download_dialog.get_values(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var data = values;
|
||
def as_link(doctype, name): | ||
if via_console: | ||
return "{0}: {1}".format(doctype, name) | ||
else: | ||
return getlink(doctype, name) | ||
|
||
error = False | ||
total = len(data) | ||
def get_link(doctype, name): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is already a method called get_url_to_form
<div class="table-responsive"> | ||
<table class="table table-bordered table-hover log-details-table"> | ||
<tr class=""> | ||
<th style="width:10%"> Row No </th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__
// rename this file from _test_[name] to test_[name] to activate | ||
// and remove above this line | ||
|
||
QUnit.test("test: Data Import", function (assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove file
db232a1
to
e1a4b8e
Compare
e1a4b8e
to
8df72aa
Compare
} | ||
}, | ||
{ | ||
"label": "File Type", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ye bhi
"default": "Excel" | ||
}, | ||
{ | ||
"label": "Download with Data", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aur ye
8df72aa
to
4f23463
Compare
New Data Import Tool
Fixes frappe/erpnext#11474, frappe/erpnext#10712, frappe/erpnext#11443
Export Template
Data Import