diff --git a/src/accounting/transaction/forms/currency.py b/src/accounting/transaction/forms/currency.py index 0af8aa5..c53e24b 100644 --- a/src/accounting/transaction/forms/currency.py +++ b/src/accounting/transaction/forms/currency.py @@ -52,8 +52,7 @@ class CurrencyExists: class NeedSomeJournalEntries: """The validator to check if there is any journal entry sub-form.""" - def __call__(self, form: TransferCurrencyForm, field: FieldList) \ - -> None: + def __call__(self, form: FlaskForm, field: FieldList) -> None: if len(field) == 0: raise ValidationError(lazy_gettext( "Please add some journal entries."))