commit | 2b33e63d2ca0f9872215453419c349493946c64d | [log] [tgz] |
---|---|---|
author | Rucha Mahabal <ruchamahabal2@gmail.com> | Tue Jan 11 14:40:08 2022 +0530 |
committer | GitHub <noreply@github.com> | Tue Jan 11 14:40:08 2022 +0530 |
tree | 74ce1b6256888ce5fa105da6ba94d4b7a28592d3 | |
parent | 754596dfc139a9890b1e446a4d2b2abfeab68449 [diff] |
fix: use `get_all` instead of `get_list` while fetching SLA doctypes (#29216) Co-authored-by: Ankush Menat <ankush@frappe.io>
diff --git a/erpnext/support/doctype/service_level_agreement/service_level_agreement.py b/erpnext/support/doctype/service_level_agreement/service_level_agreement.py index b3348f1..ea617fd 100644 --- a/erpnext/support/doctype/service_level_agreement/service_level_agreement.py +++ b/erpnext/support/doctype/service_level_agreement/service_level_agreement.py
@@ -853,7 +853,7 @@ @frappe.whitelist() def get_sla_doctypes(): doctypes = [] - data = frappe.get_list('Service Level Agreement', + data = frappe.get_all('Service Level Agreement', {'enabled': 1}, ['document_type'], distinct=1