fix: use get_all instead of get_list while fetching linked doctypes

This commit is contained in:
Rucha Mahabal 2021-12-16 09:11:21 +05:30
parent 20a2a2dd03
commit d56fea4a47

View file

@ -133,7 +133,7 @@ class SubmittableDocumentTree:
"""Returns list of submittable doctypes.
"""
if not self._submittable_doctypes:
self._submittable_doctypes = frappe.db.get_list('DocType', {'is_submittable': 1}, pluck='name')
self._submittable_doctypes = frappe.db.get_all('DocType', {'is_submittable': 1}, pluck='name')
return self._submittable_doctypes