fix: use get_all instead of get_list

(cherry picked from commit 2984a86f37e72bbdefd0348d7c456bd6ada540bb)
This commit is contained in:
Gursheen Anand 2023-11-08 12:30:24 +05:30 committed by Mergify
parent 74983910bc
commit 2a5b3bdfd9

View File

@ -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")