mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 23:38:01 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user