From bb274fce2e30dc7524944f176da54eb9179c2e10 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 22 Jul 2015 18:54:32 +0530 Subject: [PATCH] [cleanup] Party Type deleted --- erpnext/contacts/__init__.py | 0 erpnext/contacts/doctype/__init__.py | 0 .../contacts/doctype/party_type/__init__.py | 0 .../doctype/party_type/party_type.json | 92 ------------------- .../contacts/doctype/party_type/party_type.py | 9 -- erpnext/modules.txt | 1 - erpnext/patches.txt | 1 + 7 files changed, 1 insertion(+), 102 deletions(-) delete mode 100644 erpnext/contacts/__init__.py delete mode 100644 erpnext/contacts/doctype/__init__.py delete mode 100644 erpnext/contacts/doctype/party_type/__init__.py delete mode 100644 erpnext/contacts/doctype/party_type/party_type.json delete mode 100644 erpnext/contacts/doctype/party_type/party_type.py diff --git a/erpnext/contacts/__init__.py b/erpnext/contacts/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/contacts/doctype/__init__.py b/erpnext/contacts/doctype/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/contacts/doctype/party_type/__init__.py b/erpnext/contacts/doctype/party_type/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/contacts/doctype/party_type/party_type.json b/erpnext/contacts/doctype/party_type/party_type.json deleted file mode 100644 index 19ffefba7c..0000000000 --- a/erpnext/contacts/doctype/party_type/party_type.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "allow_rename": 1, - "autoname": "field:party_type_name", - "creation": "2014-04-07 12:32:18.010384", - "docstatus": 0, - "doctype": "DocType", - "document_type": "Master", - "fields": [ - { - "fieldname": "party_type_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Party Type Name", - "permlevel": 0, - "reqd": 1 - }, - { - "fieldname": "parent_party_type", - "fieldtype": "Link", - "label": "Parent Party Type", - "options": "Party Type", - "permlevel": 0 - }, - { - "default": "Yes", - "fieldname": "allow_children", - "fieldtype": "Select", - "label": "Allow Children", - "options": "Yes\nNo", - "permlevel": 0 - }, - { - "fieldname": "default_price_list", - "fieldtype": "Link", - "ignore_user_permissions": 1, - "label": "Default Price List", - "options": "Price List", - "permlevel": 0 - }, - { - "fieldname": "lft", - "fieldtype": "Int", - "hidden": 1, - "label": "LFT", - "permlevel": 0, - "read_only": 1, - "search_index": 1 - }, - { - "fieldname": "rgt", - "fieldtype": "Int", - "hidden": 1, - "label": "RGT", - "permlevel": 0, - "read_only": 1, - "search_index": 1 - }, - { - "fieldname": "old_parent", - "fieldtype": "Data", - "hidden": 1, - "label": "Old Parent", - "permlevel": 0, - "read_only": 1 - } - ], - "modified": "2015-02-05 05:11:42.046004", - "modified_by": "Administrator", - "module": "Contacts", - "name": "Party Type", - "owner": "Administrator", - "permissions": [ - { - "apply_user_permissions": 1, - "create": 1, - "permlevel": 0, - "read": 1, - "role": "Sales User", - "share": 1, - "write": 1 - }, - { - "apply_user_permissions": 1, - "create": 1, - "permlevel": 0, - "read": 1, - "role": "Purchase User", - "share": 1, - "write": 1 - } - ] -} \ No newline at end of file diff --git a/erpnext/contacts/doctype/party_type/party_type.py b/erpnext/contacts/doctype/party_type/party_type.py deleted file mode 100644 index d21216f161..0000000000 --- a/erpnext/contacts/doctype/party_type/party_type.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors -# For license information, please see license.txt - -from __future__ import unicode_literals -import frappe -from frappe.utils.nestedset import NestedSet - -class PartyType(NestedSet): - nsm_parent_field = 'parent_party_type'; diff --git a/erpnext/modules.txt b/erpnext/modules.txt index 67c856db7f..dfca2f27c5 100644 --- a/erpnext/modules.txt +++ b/erpnext/modules.txt @@ -9,6 +9,5 @@ Manufacturing Stock Support Utilities -Contacts Shopping Cart Hub Node diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 269dcbaf9c..c7355073c4 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -177,3 +177,4 @@ erpnext.patches.v5_1.track_operations execute:frappe.rename_doc("DocType", "Salary Manager", "Process Payroll", force=True) erpnext.patches.v5_1.rename_roles erpnext.patches.v5_1.default_bom +execute:frappe.delete_doc("DocType", "Party Type") \ No newline at end of file