commit | 2984a86f37e72bbdefd0348d7c456bd6ada540bb | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Wed Nov 08 12:30:24 2023 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Wed Nov 08 12:30:24 2023 +0530 |
tree | 6c593c1c8c61537c5c5ef11324a754529308e7cf | |
parent | 84f0d1ff1ff231f0388033d2304d977b07411253 [diff] |
fix: use get_all instead of get_list
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 0a116a7..aef0c38 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py
@@ -2044,4 +2044,4 @@ def get_party_types_from_account_type(account_type): - return frappe.db.get_list("Party Type", {"account_type": account_type}, pluck="name") + return frappe.db.get_all("Party Type", {"account_type": account_type}, pluck="name")