From 2c8e3f3409bd755ebd0ce7faa22f7aa1ac148d7a Mon Sep 17 00:00:00 2001 From: rethik Date: Mon, 3 Feb 2025 19:22:37 +0530 Subject: [PATCH] fix: add validate to allow equity account and party_type shareholder --- erpnext/accounts/party.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index 477573554f0..452632fb6d4 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -777,7 +777,11 @@ 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"]): + if ( + account_type + and (account_type not in ["Receivable", "Payable", "Equity"]) + and self.party_type != "Shareholder" + ): frappe.throw( _( "Party Type and Party can only be set for Receivable / Payable account

" "{0}"