fix: patch fixes
This commit is contained in:
parent
917e534191
commit
134ad61604
@ -601,4 +601,5 @@ erpnext.patches.v11_1.set_salary_details_submittable
|
||||
erpnext.patches.v11_1.rename_depends_on_lwp
|
||||
execute:frappe.delete_doc("Report", "Inactive Items")
|
||||
erpnext.patches.v11_1.delete_scheduling_tool
|
||||
execute:frappe.reload_doc('support', 'doctype', 'service_level_priority')
|
||||
erpnext.patches.v12_0.move_parameters_to_priority
|
@ -10,12 +10,13 @@ def execute():
|
||||
service_levels = frappe.get_list("Service Level",
|
||||
fields=["name", "priority", "response_time", "response_time_period", "resolution_time", "resolution_time_period"])
|
||||
for service_level in service_levels:
|
||||
for value in priorities:
|
||||
for idx, value in enumerate(priorities):
|
||||
doc = frappe.get_doc({
|
||||
"doctype": "Service Level Priority",
|
||||
"parent": service_level.name,
|
||||
"parenttype": "Service Level",
|
||||
"priority": value,
|
||||
"idx": idx,
|
||||
"response_time": service_level.response_time,
|
||||
"response_time_period": service_level.response_time_period,
|
||||
"resolution_time": service_level.resolution_time,
|
||||
@ -25,12 +26,13 @@ def execute():
|
||||
service_level_agreements = frappe.get_list("Service Level Agreement",
|
||||
fields=["name", "priority", "response_time", "response_time_period", "resolution_time", "resolution_time_period"])
|
||||
for service_level_agreement in service_level_agreements:
|
||||
for value in priorities:
|
||||
for idx, value in enumerate(priorities):
|
||||
doc = frappe.get_doc({
|
||||
"doctype": "Service Level Priority",
|
||||
"parent": service_level_agreement.name,
|
||||
"parenttype": "Service Level Agreement",
|
||||
"priority": value,
|
||||
"idx": idx,
|
||||
"response_time": service_level_agreement.response_time,
|
||||
"response_time_period": service_level_agreement.response_time_period,
|
||||
"resolution_time": service_level_agreement.resolution_time,
|
||||
|
Loading…
x
Reference in New Issue
Block a user