fix: remove priorities list
This commit is contained in:
parent
68ed272bfa
commit
b903da6bfd
@ -7,7 +7,6 @@
|
|||||||
"field_order": [
|
"field_order": [
|
||||||
"service_level",
|
"service_level",
|
||||||
"employee_group",
|
"employee_group",
|
||||||
"priorities_list",
|
|
||||||
"column_break_2",
|
"column_break_2",
|
||||||
"holiday_list",
|
"holiday_list",
|
||||||
"default_priority",
|
"default_priority",
|
||||||
@ -74,15 +73,9 @@
|
|||||||
"label": "Default Priority",
|
"label": "Default Priority",
|
||||||
"options": "Issue Priority",
|
"options": "Issue Priority",
|
||||||
"read_only": 1
|
"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",
|
"modified_by": "Administrator",
|
||||||
"module": "Support",
|
"module": "Support",
|
||||||
"name": "Service Level",
|
"name": "Service Level",
|
||||||
|
@ -13,7 +13,6 @@ class ServiceLevel(Document):
|
|||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.check_priorities()
|
self.check_priorities()
|
||||||
self.set_priorities()
|
|
||||||
self.check_support_and_resolution()
|
self.check_support_and_resolution()
|
||||||
|
|
||||||
def check_priorities(self):
|
def check_priorities(self):
|
||||||
@ -62,14 +61,6 @@ class ServiceLevel(Document):
|
|||||||
except Exception:
|
except Exception:
|
||||||
frappe.throw(_("Select a Default Priority."))
|
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):
|
def check_support_and_resolution(self):
|
||||||
week = get_weekdays()
|
week = get_weekdays()
|
||||||
support_days = []
|
support_days = []
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
"customer",
|
"customer",
|
||||||
"default_service_level_agreement",
|
"default_service_level_agreement",
|
||||||
"holiday_list",
|
"holiday_list",
|
||||||
"priorities_list",
|
|
||||||
"column_break_2",
|
"column_break_2",
|
||||||
"service_level",
|
"service_level",
|
||||||
"employee_group",
|
"employee_group",
|
||||||
@ -149,16 +148,9 @@
|
|||||||
"label": "Default Priority",
|
"label": "Default Priority",
|
||||||
"options": "Issue Priority",
|
"options": "Issue Priority",
|
||||||
"read_only": 1
|
"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",
|
"modified_by": "Administrator",
|
||||||
"module": "Support",
|
"module": "Support",
|
||||||
"name": "Service Level Agreement",
|
"name": "Service Level Agreement",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user