From b903da6bfdf7b0feaa5a5607f376d050da163640 Mon Sep 17 00:00:00 2001 From: Himanshu Warekar Date: Wed, 5 Jun 2019 13:42:03 +0530 Subject: [PATCH] fix: remove priorities list --- .../support/doctype/service_level/service_level.json | 9 +-------- erpnext/support/doctype/service_level/service_level.py | 9 --------- .../service_level_agreement.json | 10 +--------- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/erpnext/support/doctype/service_level/service_level.json b/erpnext/support/doctype/service_level/service_level.json index d4ce7d34d6..ab2f4f2bcb 100644 --- a/erpnext/support/doctype/service_level/service_level.json +++ b/erpnext/support/doctype/service_level/service_level.json @@ -7,7 +7,6 @@ "field_order": [ "service_level", "employee_group", - "priorities_list", "column_break_2", "holiday_list", "default_priority", @@ -74,15 +73,9 @@ "label": "Default Priority", "options": "Issue Priority", "read_only": 1 - }, - { - "fieldname": "priorities_list", - "fieldtype": "Long Text", - "hidden": 1, - "label": "Priorities List" } ], - "modified": "2019-05-25 20:18:00.240337", + "modified": "2019-06-05 13:37:20.342946", "modified_by": "Administrator", "module": "Support", "name": "Service Level", diff --git a/erpnext/support/doctype/service_level/service_level.py b/erpnext/support/doctype/service_level/service_level.py index 80e4e22b90..4e70a01c7a 100644 --- a/erpnext/support/doctype/service_level/service_level.py +++ b/erpnext/support/doctype/service_level/service_level.py @@ -13,7 +13,6 @@ class ServiceLevel(Document): def validate(self): self.check_priorities() - self.set_priorities() self.check_support_and_resolution() def check_priorities(self): @@ -62,14 +61,6 @@ class ServiceLevel(Document): except Exception: frappe.throw(_("Select a Default Priority.")) - def set_priorities(self): - priorities = [] - - for priority in self.priorities: - priorities.append(priority.priority) - - self.priorities_list = ",".join(priorities) - def check_support_and_resolution(self): week = get_weekdays() support_days = [] diff --git a/erpnext/support/doctype/service_level_agreement/service_level_agreement.json b/erpnext/support/doctype/service_level_agreement/service_level_agreement.json index 98baa6ece9..7722f6ee4f 100644 --- a/erpnext/support/doctype/service_level_agreement/service_level_agreement.json +++ b/erpnext/support/doctype/service_level_agreement/service_level_agreement.json @@ -9,7 +9,6 @@ "customer", "default_service_level_agreement", "holiday_list", - "priorities_list", "column_break_2", "service_level", "employee_group", @@ -149,16 +148,9 @@ "label": "Default Priority", "options": "Issue Priority", "read_only": 1 - }, - { - "fetch_from": "service_level.priorities_list", - "fieldname": "priorities_list", - "fieldtype": "Text", - "hidden": 1, - "label": "Priorities List" } ], - "modified": "2019-05-25 20:20:41.231834", + "modified": "2019-06-05 13:41:24.189152", "modified_by": "Administrator", "module": "Support", "name": "Service Level Agreement",