mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-14 06:35:36 +00:00
[IMP] remove storage of ebics_files in EBICS Files Root directory
This commit is contained in:
@@ -91,14 +91,6 @@ class EbicsConfig(models.Model):
|
||||
"between customer and financial institution. "
|
||||
"The human user also can authorise orders.",
|
||||
)
|
||||
ebics_files = fields.Char(
|
||||
string="EBICS Files Root",
|
||||
required=True,
|
||||
readonly=True,
|
||||
states={"draft": [("readonly", False)]},
|
||||
default=lambda self: self._default_ebics_files(),
|
||||
help="Root Directory for EBICS File Transfer Folders.",
|
||||
)
|
||||
# We store the EBICS keys in a separate directory in the file system.
|
||||
# This directory requires special protection to reduce fraude.
|
||||
ebics_keys = fields.Char(
|
||||
@@ -253,14 +245,3 @@ class EbicsConfig(models.Model):
|
||||
)
|
||||
% dirname
|
||||
)
|
||||
|
||||
def _check_ebics_files(self):
|
||||
dirname = self.ebics_files or ""
|
||||
if not os.path.exists(dirname):
|
||||
raise UserError(
|
||||
_(
|
||||
"EBICS Files Root Directory %s is not available."
|
||||
"\nPlease contact your system administrator."
|
||||
)
|
||||
% dirname
|
||||
)
|
||||
|
@@ -255,7 +255,6 @@ class EbicsUserID(models.Model):
|
||||
Create new keys and certificates for this user
|
||||
"""
|
||||
self.ensure_one()
|
||||
self.ebics_config_id._check_ebics_files()
|
||||
if self.state != "draft":
|
||||
raise UserError(
|
||||
_("Set state to 'draft' before Bank Key (re)initialisation.")
|
||||
@@ -442,7 +441,6 @@ class EbicsUserID(models.Model):
|
||||
must be downloaded and checked for consistency.
|
||||
"""
|
||||
self.ensure_one()
|
||||
self.ebics_config_id._check_ebics_files()
|
||||
if self.state != "get_bank_keys":
|
||||
raise UserError(_("Set state to 'Get Keys from Bank'."))
|
||||
try:
|
||||
|
Reference in New Issue
Block a user