fix: use get_all instead of get_list while fetching SLA doctypes (#29216)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
Rucha Mahabal 2022-01-11 14:40:08 +05:30 committed by GitHub
parent 754596dfc1
commit 2b33e63d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -853,7 +853,7 @@ def get_user_time(user, to_string=False):
@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