fix: linters

(cherry picked from commit 9cc22b4cac)
This commit is contained in:
Vishakh Desai
2024-09-28 12:53:43 +05:30
committed by Mergify
parent 1fe534290d
commit 381101f552

View File

@@ -74,7 +74,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):