diff --git a/l10n_ch_base_bank/models/invoice.py b/l10n_ch_base_bank/models/invoice.py index 55bd4ba..5ade774 100644 --- a/l10n_ch_base_bank/models/invoice.py +++ b/l10n_ch_base_bank/models/invoice.py @@ -87,14 +87,13 @@ class AccountMove(models.Model): ) if ( bank_acc.acc_type not in ["qr-iban", 'iban'] - and ( - move.currency_id.name == "CHF" - and not bank_acc.l10n_ch_isr_subscription_chf - ) - or ( - move.currency_id.name == "EUR" - and not bank_acc.l10n_ch_isr_subscription_eur - ) + and (( + move.currency_id.name == "CHF" + and not bank_acc.l10n_ch_isr_subscription_chf + ) or ( + move.currency_id.name == "EUR" + and not bank_acc.l10n_ch_isr_subscription_eur + )) ): raise exceptions.ValidationError( _(