diff --git a/account_ebics/models/ebics_config.py b/account_ebics/models/ebics_config.py
index 1726ae2..6cfbceb 100644
--- a/account_ebics/models/ebics_config.py
+++ b/account_ebics/models/ebics_config.py
@@ -80,6 +80,7 @@ class EbicsConfig(models.Model):
ebics_userid_ids = fields.One2many(
comodel_name="ebics.userid",
inverse_name="ebics_config_id",
+ string="EBICS UserID",
readonly=True,
states={"draft": [("readonly", False)]},
help="Human users or a technical system that is/are "
@@ -128,7 +129,7 @@ class EbicsConfig(models.Model):
comodel_name="ebics.file.format",
column1="config_id",
column2="format_id",
- string="EBICS File Formats",
+ string="EBICS File Format",
readonly=True,
states={"draft": [("readonly", False)]},
)
diff --git a/account_ebics/views/ebics_userid_views.xml b/account_ebics/views/ebics_userid_views.xml
index d2da395..c174db2 100644
--- a/account_ebics/views/ebics_userid_views.xml
+++ b/account_ebics/views/ebics_userid_views.xml
@@ -91,7 +91,7 @@
diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py
index 5bc4a70..d6fb2db 100644
--- a/account_ebics/wizards/ebics_xfer.py
+++ b/account_ebics/wizards/ebics_xfer.py
@@ -65,6 +65,9 @@ class EbicsXfer(models.TransientModel):
ebics_passphrase_stored = fields.Char(
string="EBICS Stored Passphrase", related="ebics_userid_id.ebics_passphrase"
)
+ ebics_passphrase_store = fields.Boolean(
+ related="ebics_userid_id.ebics_passphrase_store"
+ )
date_from = fields.Date()
date_to = fields.Date()
upload_data = fields.Binary(string="File to Upload")
@@ -134,10 +137,6 @@ class EbicsXfer(models.TransientModel):
if len(ebics_userids) == 1:
self.ebics_userid_id = ebics_userids
- @api.onchange("ebics_userid_id")
- def _onchange_ebics_userid_id(self):
- self.ebics_passphrase = self.ebics_passphrase_stored
-
@api.onchange("upload_data")
def _onchange_upload_data(self):
self.upload_fname_dummy = self.upload_fname
@@ -484,7 +483,7 @@ class EbicsXfer(models.TransientModel):
return client
def _get_passphrase(self):
- return self.ebics_passphrase or self.ebics_userid_id.ebics_passphrase
+ return self.ebics_passphrase or self.ebics_passphrase_stored
def _file_format_methods(self):
"""
diff --git a/account_ebics/wizards/ebics_xfer.xml b/account_ebics/wizards/ebics_xfer.xml
index 3d61d8d..aef387a 100644
--- a/account_ebics/wizards/ebics_xfer.xml
+++ b/account_ebics/wizards/ebics_xfer.xml
@@ -23,10 +23,9 @@
-
+
-
+