fix: Ignore missing customer group while fetching price list
diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py
index b443852..791cd1d 100644
--- a/erpnext/accounts/party.py
+++ b/erpnext/accounts/party.py
@@ -170,10 +170,7 @@
return party.default_price_list
if party.doctype == "Customer":
- try:
- return frappe.get_cached_value("Customer Group", party.customer_group, "default_price_list")
- except frappe.exceptions.DoesNotExistError:
- return
+ return frappe.db.get_value("Customer Group", party.customer_group, "default_price_list")
def set_price_list(party_details, party, party_type, given_price_list, pos=None):