mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
fix: remove party type from validate
(cherry picked from commit f82837a4a2)
This commit is contained in:
@@ -765,11 +765,7 @@ def validate_account_party_type(self):
|
|||||||
|
|
||||||
if self.party_type and self.party:
|
if self.party_type and self.party:
|
||||||
account_type = frappe.get_cached_value("Account", self.account, "account_type")
|
account_type = frappe.get_cached_value("Account", self.account, "account_type")
|
||||||
if (
|
if account_type and (account_type not in ["Receivable", "Payable", "Equity"]):
|
||||||
account_type
|
|
||||||
and (account_type not in ["Receivable", "Payable", "Equity"])
|
|
||||||
and self.party_type != "Shareholder"
|
|
||||||
):
|
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
"Party Type and Party can only be set for Receivable / Payable account<br><br>" "{0}"
|
"Party Type and Party can only be set for Receivable / Payable account<br><br>" "{0}"
|
||||||
|
|||||||
Reference in New Issue
Block a user