diff --git a/erpnext/patches/july_2012/deprecate_import_data_control.py b/erpnext/patches/july_2012/deprecate_import_data_control.py
new file mode 100644
index 0000000000..d0cd7de820
--- /dev/null
+++ b/erpnext/patches/july_2012/deprecate_import_data_control.py
@@ -0,0 +1,10 @@
+def execute():
+ """
+ deprecate:
+ * doctype - import data control
+ * page - import data (old)
+ """
+ import webnotes
+ from webnotes.model import delete_doc
+ delete_doc('DocType', 'Import Data Control')
+ delete_doc('Page', 'Import Data')
\ No newline at end of file
diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py
index 0307a0fedb..ab95e9553d 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -481,5 +481,10 @@ patch_list = [
'patch_module': 'patches.july_2012',
'patch_file': 'packing_list_cleanup_and_serial_no',
'description': "packing list cleanup and serial no status update"
- },
+ },
+ {
+ 'patch_module': 'patches.july_2012',
+ 'patch_file': 'deprecate_import_data_control',
+ 'description': "deprecate doctype - Import Data Control and page - Import Data"
+ },
]
\ No newline at end of file
diff --git a/erpnext/setup/doctype/import_data_control/__init__.py b/erpnext/setup/doctype/import_data_control/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/erpnext/setup/doctype/import_data_control/import_data_control.py b/erpnext/setup/doctype/import_data_control/import_data_control.py
deleted file mode 100644
index 9e7461ec7e..0000000000
--- a/erpnext/setup/doctype/import_data_control/import_data_control.py
+++ /dev/null
@@ -1,50 +0,0 @@
-# ERPNext - web based ERP (http://erpnext.com)
-# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-
-# Please edit this list and import only required elements
-import webnotes
-
-from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
-from webnotes.model import db_exists
-from webnotes.model.doc import Document, addchild, getchildren, make_autoname
-from webnotes.model.doclist import getlist, copy_doclist
-from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
-from webnotes import session, form, is_testing, msgprint, errprint
-
-set = webnotes.conn.set
-sql = webnotes.conn.sql
-get_value = webnotes.conn.get_value
-in_transaction = webnotes.conn.in_transaction
-convert_to_lists = webnotes.conn.convert_to_lists
-
-# -----------------------------------------------------------------------------------------
-
-
-class DocType:
- def __init__(self,d,dl):
- self.doc, self.doclist = d,dl
-
- def get_master_lst(self):
-
- return [r[0] for r in sql("select name from `tabDocType` where document_type = 'Master'")]
-
- def get_child_lst(self,nm):
- res = [nm]
-
- ret=sql("select options from `tabDocField` where parent='%s' and fieldtype = 'Table'"%nm)
- for r in ret:
- res.append(r[0])
- return res
\ No newline at end of file
diff --git a/erpnext/setup/doctype/import_data_control/import_data_control.txt b/erpnext/setup/doctype/import_data_control/import_data_control.txt
deleted file mode 100644
index fa19e109c8..0000000000
--- a/erpnext/setup/doctype/import_data_control/import_data_control.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-# DocType, Import Data Control
-[
-
- # These values are common in all dictionaries
- {
- 'creation': '2012-03-27 14:36:21',
- 'docstatus': 0,
- 'modified': '2012-03-27 14:36:21',
- 'modified_by': u'Administrator',
- 'owner': u'harshada@webnotestech.com'
- },
-
- # These values are common for all DocType
- {
- 'colour': u'White:FFF',
- 'doctype': 'DocType',
- 'issingle': 1,
- 'module': u'Setup',
- 'name': '__common__',
- 'section_style': u'Simple',
- 'server_code_error': u' ',
- 'version': 12
- },
-
- # DocType, Import Data Control
- {
- 'doctype': 'DocType',
- 'name': u'Import Data Control'
- }
-]
\ No newline at end of file
diff --git a/erpnext/setup/page/import_data/__init__.py b/erpnext/setup/page/import_data/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/erpnext/setup/page/import_data/import_data.html b/erpnext/setup/page/import_data/import_data.html
deleted file mode 100644
index b655442cef..0000000000
--- a/erpnext/setup/page/import_data/import_data.html
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- Data Import Guide
-
- - Get the template of the DocType for which you want to import in CSV (Comma seperated values) format.
- - Fill in the data in the template. You can remove columns that are not relevant
- - Save the template in CSV format
- - Select the saved CSV file, identify the date format if any
- - Click on "Import"
-
-
- Over-writing Guide
-
- - To over-write data, click on "Do you want to over-write records?" and then download template
- - To over-write parent table data, mention existing ID in "Name" column
- - Over-writing of child table data will delete all previous data from child table of those parents which you are importing. So before over-writing child tables, take a backup of the child table data by exporting from report builder. Re-import all rows of the child table for a particular parent.
For example: If you want to overwrite tax rate for tax account "VAT" ifor item: ITEM001 and suppose there are 3 rows in "Item Tax" table for item : ITEM001. While overwriting the system will delete all 3 rows. So, you have to re-import all 3 rows for that item.
- - Over-write checkbox will be checked while importing
-
-
- Do you have Non-English data?
- You may need to save the file with UTF-8 encoding for data to be imported correctly.
-
- Microsoft Excel Users:
- There is no obvious way of saving a CSV file with UTF-8 encoding.
- You will need to follow these steps:
-
- - In Excel, save the file in CSV (Comma Delimited) format
- - Open this saved file in Notepad
- - Click on File -> Save As
- - File Name: <your filename>.csv
- Save as type: Text Documents (*.txt)
- Encoding: UTF-8
-
- - Click on Save
-
-
- OpenOffice or LibreOffice Users:
-
- - While saving as CSV, check "Edit Filter Settings".
- - You will be prompted for Encoding.
- - Make sure it is "UTF-8" and click on OK.
-
-
- |
-
-Import Log:
-
-
-
- |
-
-
-
-
-
diff --git a/erpnext/setup/page/import_data/import_data.js b/erpnext/setup/page/import_data/import_data.js
deleted file mode 100644
index 734c16d6e7..0000000000
--- a/erpnext/setup/page/import_data/import_data.js
+++ /dev/null
@@ -1,71 +0,0 @@
-// ERPNext - web based ERP (http://erpnext.com)
-// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
-
-pscript['onload_Import Data'] = function() {
-
- //alert(profile.can_get_report);
-
- callback = function(r,rt) {
- var h = new PageHeader('di_header','Import Data','Tool to download template and upload data');
- var sel = $i('import_template');
- if(r.message){
- add_sel_options(sel, r.message);
-
- // please collapse here when editing :)
- sel.onchange=function(){
- $i('child_tab_lst').innerHTML ='';
- if(sel.value != 'Select Master...'){
- $c_obj('Import Data Control','get_child_lst',sel.value,
- function(r,rt){
- var me = this;
- $y($i('child_tab_lst'),{backgroundColor:'#EEEEEE', margin: '17px 17px', padding: '13px'})
- var desc = $a($i('child_tab_lst'), 'div', '', {padding:'4px'});
-
- desc.innerHTML = "Download template(s) for importing "+sel_val(sel)+"";
-
-
- var parent = $a($i('child_tab_lst'), 'div');
- var tab = make_table(parent,r.message.length,1,'100%',[],{padding:'3px',borderCollapse: 'collapse'});
-
- for(var i=0;i