From 2a5b3bdfd9120db177f28441416d817f3c3b4a98 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Wed, 8 Nov 2023 12:30:24 +0530 Subject: [PATCH] fix: use get_all instead of get_list (cherry picked from commit 2984a86f37e72bbdefd0348d7c456bd6ada540bb) --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 93389ad299..8ae6c0e082 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -2043,4 +2043,4 @@ def create_gain_loss_journal( 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")