Merge branch '16-fix-account-ebics-new-userid' into '16.0'

[FIX]account_ebics - fix passphrase visibility for new userid

See merge request Noviat/Noviat_Generic/accounting-ebics!33
This commit is contained in:
Luc De Meyer 2024-03-25 16:08:54 +00:00
commit 6016e83079
3 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
{ {
"name": "EBICS banking protocol", "name": "EBICS banking protocol",
"version": "16.0.1.9.0", "version": "16.0.1.9.1",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com/", "website": "https://www.noviat.com/",

View File

@ -228,7 +228,7 @@ class EbicsUserID(models.Model):
rec.ebics_keys_fn rec.ebics_keys_fn
) )
@api.depends("state", "ebics_passphrase") @api.depends("state", "ebics_passphrase", "ebics_keys_found")
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_required = False rec.ebics_passphrase_required = False
@ -236,6 +236,7 @@ class EbicsUserID(models.Model):
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_invisible = rec.ebics_keys_found and True or False
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_required = False

View File

@ -83,6 +83,7 @@
<field name="state" widget="statusbar" /> <field name="state" widget="statusbar" />
</header> </header>
<group name="invisible" invisible="1"> <group name="invisible" invisible="1">
<field name="ebics_config_id" />
<field name="ebics_keys_found" /> <field name="ebics_keys_found" />
<field name="ebics_keys_fn" /> <field name="ebics_keys_fn" />
<field name="ebics_version" /> <field name="ebics_version" />