Skip to content

Commit

Permalink
fix: use get_all instead of get_list
Browse files Browse the repository at this point in the history
(cherry picked from commit 2984a86)
  • Loading branch information
GursheenK authored and mergify[bot] committed Nov 9, 2023
1 parent 7498391 commit 2a5b3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 2a5b3bd

Please sign in to comment.