fix: patch for adding doctype to sla (#26053)
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 161241e..c42fcf6 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -285,5 +285,5 @@
erpnext.patches.v13_0.germany_fill_debtor_creditor_number
erpnext.patches.v13_0.set_pos_closing_as_failed
erpnext.patches.v13_0.update_timesheet_changes
-erpnext.patches.v13_0.add_doctype_to_sla
+erpnext.patches.v13_0.add_doctype_to_sla #14-06-2021
erpnext.patches.v13_0.set_training_event_attendance
diff --git a/erpnext/patches/v13_0/add_doctype_to_sla.py b/erpnext/patches/v13_0/add_doctype_to_sla.py
index 3540778..e2c7fd2 100644
--- a/erpnext/patches/v13_0/add_doctype_to_sla.py
+++ b/erpnext/patches/v13_0/add_doctype_to_sla.py
@@ -7,6 +7,7 @@
from frappe.model.utils.rename_field import rename_field
def execute():
+ frappe.reload_doc('support', 'doctype', 'sla_fulfilled_on_status')
frappe.reload_doc('support', 'doctype', 'service_level_agreement')
if frappe.db.has_column('Service Level Agreement', 'enable'):
rename_field('Service Level Agreement', 'enable', 'enabled')