From 8d72a089fcb393792ab7c612e41a8c5e992c3cbc Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 11 Sep 2020 11:08:08 +0200 Subject: [PATCH] fix 3SKey init check --- account_ebics/models/ebics_userid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_ebics/models/ebics_userid.py b/account_ebics/models/ebics_userid.py index 6ae6a1f..441839a 100644 --- a/account_ebics/models/ebics_userid.py +++ b/account_ebics/models/ebics_userid.py @@ -210,7 +210,7 @@ class EbicsUserID(models.Model): raise UserError( _("Set a passphrase.")) - if not self.swift_3skey and not self.swift_3skey_certificate: + if self.swift_3skey and not self.swift_3skey_certificate: raise UserError( _("3SKey certificate missing."))