mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 20:52:04 +00:00
[FIX]bugfix _compute_ebics_passphrase_view_modifiers
This commit is contained in:
parent
cb5ac3ac23
commit
b7a0d27e1c
@ -209,19 +209,18 @@ class EbicsUserID(models.Model):
|
|||||||
@api.depends("state", "ebics_passphrase")
|
@api.depends("state", "ebics_passphrase")
|
||||||
def _compute_ebics_passphrase_view_modifiers(self):
|
def _compute_ebics_passphrase_view_modifiers(self):
|
||||||
for rec in 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
|
rec.ebics_passphrase_store_readonly = True
|
||||||
if rec.state == "draft":
|
if rec.state == "draft":
|
||||||
rec.ebics_passphrase_required = True
|
rec.ebics_passphrase_required = True
|
||||||
rec.ebics_passphrase_store_readonly = False
|
rec.ebics_passphrase_store_readonly = False
|
||||||
elif rec.state == "init":
|
elif rec.state == "init":
|
||||||
|
rec.ebics_passphrase_required = False
|
||||||
rec.ebics_passphrase_invisible = True
|
rec.ebics_passphrase_invisible = True
|
||||||
elif rec.state in ("get_bank_keys", "to_verify"):
|
elif rec.state in ("get_bank_keys", "to_verify"):
|
||||||
rec.ebics_passphrase_required = not rec.ebics_passphrase
|
rec.ebics_passphrase_required = not rec.ebics_passphrase
|
||||||
rec.ebics_passphrase_invisible = rec.ebics_passphrase
|
rec.ebics_passphrase_invisible = rec.ebics_passphrase
|
||||||
else:
|
|
||||||
rec.ebics_passphrase_required = False
|
|
||||||
rec.ebics_passphrase_invisible = True
|
|
||||||
|
|
||||||
@api.depends("state")
|
@api.depends("state")
|
||||||
def _compute_ebics_sig_passphrase_invisible(self):
|
def _compute_ebics_sig_passphrase_invisible(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user