From c3e2ff2fa5724797f414655d2341f826f6593486 Mon Sep 17 00:00:00 2001 From: Vishakh Desai Date: Sat, 28 Sep 2024 12:53:43 +0530 Subject: [PATCH] fix: linters (cherry picked from commit 9cc22b4cacaf958dad6aadf7a8b9b663326f5a05) --- .../exchange_rate_revaluation/exchange_rate_revaluation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py index 67e16eb6d8e..839dda8872d 100644 --- a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py +++ b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py @@ -52,7 +52,7 @@ class ExchangeRateRevaluation(Document): if not (self.company and self.posting_date): frappe.throw(_("Please select Company and Posting Date to getting entries")) - def on_submit(self): + def before_submit(self): self.remove_accounts_without_gain_loss() def remove_accounts_without_gain_loss(self):