mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 20:52:04 +00:00
Merge branch '17-fix-account-ebics-new-userid' into '17.0'
[FIX]account_ebics - fix passphrase visibility for new userid See merge request Noviat/Noviat_Generic/accounting-ebics!34
This commit is contained in:
commit
e60ca8f075
@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "EBICS banking protocol",
|
||||
"version": "17.0.1.0.0",
|
||||
"version": "17.0.1.0.1",
|
||||
"license": "LGPL-3",
|
||||
"author": "Noviat",
|
||||
"website": "https://www.noviat.com",
|
||||
|
@ -206,7 +206,7 @@ class EbicsUserID(models.Model):
|
||||
rec.ebics_keys_fn
|
||||
)
|
||||
|
||||
@api.depends("state", "ebics_passphrase")
|
||||
@api.depends("state", "ebics_passphrase", "ebics_keys_found")
|
||||
def _compute_ebics_passphrase_view_modifiers(self):
|
||||
for rec in self:
|
||||
rec.ebics_passphrase_required = False
|
||||
@ -214,6 +214,7 @@ class EbicsUserID(models.Model):
|
||||
rec.ebics_passphrase_store_readonly = True
|
||||
if rec.state == "draft":
|
||||
rec.ebics_passphrase_required = True
|
||||
rec.ebics_passphrase_invisible = rec.ebics_keys_found and True or False
|
||||
rec.ebics_passphrase_store_readonly = False
|
||||
elif rec.state == "init":
|
||||
rec.ebics_passphrase_required = False
|
||||
|
@ -83,6 +83,7 @@
|
||||
<field name="state" widget="statusbar" />
|
||||
</header>
|
||||
<group name="invisible" invisible="1">
|
||||
<field name="ebics_config_id" />
|
||||
<field name="ebics_keys_found" />
|
||||
<field name="ebics_keys_fn" />
|
||||
<field name="ebics_version" />
|
||||
|
Loading…
Reference in New Issue
Block a user