Merge branch '17-fix-change_passphrase' into '17.0'

[FIX]fix change_passphrase

See merge request Noviat/Noviat_Generic/accounting-ebics!37
This commit is contained in:
Luc De Meyer 2024-03-29 08:37:48 +00:00
commit 379c9760fe
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -1,4 +1,4 @@
# Copyright 2009-2023 Noviat. # Copyright 2009-2024 Noviat.
# License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl).
import logging import logging
@ -76,7 +76,7 @@ class EbicsChangePassphrase(models.TransientModel):
"passphrase": passphrase, "passphrase": passphrase,
} }
if self.new_sig_pass: if self.new_sig_pass:
keyring_params["sig_passphrase"] = self.old_sig_pass keyring_params["sig_passphrase"] = self.old_sig_pass or None
keyring = EbicsKeyRing(**keyring_params) keyring = EbicsKeyRing(**keyring_params)
change_params = {} change_params = {}
if self.new_pass: if self.new_pass: