From 8be5fcaa713bf0b926b7097daa82aa9518d17570 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sat, 27 Jan 2024 13:03:01 +0100 Subject: [PATCH] [FIX]bugfix _compute_ebics_passphrase_view_modifiers --- account_ebics/models/ebics_userid.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/account_ebics/models/ebics_userid.py b/account_ebics/models/ebics_userid.py index beca448..5f04819 100644 --- a/account_ebics/models/ebics_userid.py +++ b/account_ebics/models/ebics_userid.py @@ -231,19 +231,18 @@ class EbicsUserID(models.Model): @api.depends("state", "ebics_passphrase") def _compute_ebics_passphrase_view_modifiers(self): for rec in self: - rec.ebics_passphrase_invisible = False + rec.ebics_passphrase_required = False + rec.ebics_passphrase_invisible = True rec.ebics_passphrase_store_readonly = True if rec.state == "draft": rec.ebics_passphrase_required = True rec.ebics_passphrase_store_readonly = False elif rec.state == "init": + rec.ebics_passphrase_required = True rec.ebics_passphrase_invisible = True elif rec.state in ("get_bank_keys", "to_verify"): rec.ebics_passphrase_required = not rec.ebics_passphrase rec.ebics_passphrase_invisible = rec.ebics_passphrase - else: - rec.ebics_passphrase_required = False - rec.ebics_passphrase_invisible = True @api.depends("state") def _compute_ebics_sig_passphrase_invisible(self):