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:
parent
754596dfc1
commit
2b33e63d2c
@ -853,7 +853,7 @@ def get_user_time(user, to_string=False):
|
|||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_sla_doctypes():
|
def get_sla_doctypes():
|
||||||
doctypes = []
|
doctypes = []
|
||||||
data = frappe.get_list('Service Level Agreement',
|
data = frappe.get_all('Service Level Agreement',
|
||||||
{'enabled': 1},
|
{'enabled': 1},
|
||||||
['document_type'],
|
['document_type'],
|
||||||
distinct=1
|
distinct=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user