mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-09 13:26:39 +00:00
chore: resolve linter
This commit is contained in:
@@ -30,7 +30,9 @@ class BankAccount(Document):
|
||||
|
||||
def validate_account(self):
|
||||
if self.account:
|
||||
if accounts := frappe.db.get_all("Bank Account", filters={"account": self.account, 'name':['!=', self.name]}, as_list=1):
|
||||
if accounts := frappe.db.get_all(
|
||||
"Bank Account", filters={"account": self.account, "name": ["!=", self.name]}, as_list=1
|
||||
):
|
||||
frappe.throw(
|
||||
_("'{0}' account is already used by {1}. Use another account.").format(
|
||||
frappe.bold(self.account),
|
||||
|
||||
Reference in New Issue
Block a user