Skip to content

Commit

Permalink
fix: remove party type from validate
Browse files Browse the repository at this point in the history
(cherry picked from commit f82837a)
  • Loading branch information
rs-rethik authored and mergify[bot] committed Feb 18, 2025
1 parent 552b5a7 commit 0d21151
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions erpnext/accounts/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,11 +765,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}"
Expand Down

0 comments on commit 0d21151

Please sign in to comment.