fix: remove party type from validate

This commit is contained in:
rethik
2025-02-04 11:07:41 +05:30
parent 9422ce5aee
commit f82837a4a2

View File

@@ -777,11 +777,7 @@ def validate_account_party_type(self):
if self.party_type and self.party:
account_type = frappe.get_cached_value("Account", self.account, "account_type")
if (
account_type
and (account_type not in ["Receivable", "Payable", "Equity"])
and self.party_type != "Shareholder"
):
if account_type and (account_type not in ["Receivable", "Payable", "Equity"]):
frappe.throw(
_(
"Party Type and Party can only be set for Receivable / Payable account<br><br>" "{0}"