mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-04-25 23:26:50 +00:00
[IMP] account_ebics: pre-commit auto fixes
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
exclude: |
|
exclude: |
|
||||||
(?x)
|
(?x)
|
||||||
# NOT INSTALLABLE ADDONS
|
# NOT INSTALLABLE ADDONS
|
||||||
|
|||||||
@@ -379,8 +379,7 @@ class EbicsFile(models.Model):
|
|||||||
file_data = base64.b64decode(self.data).replace(b"\n", b"").replace(b"\r", b"")
|
file_data = base64.b64decode(self.data).replace(b"\n", b"").replace(b"\r", b"")
|
||||||
if len(file_data) % 120:
|
if len(file_data) % 120:
|
||||||
message = self.env._(
|
message = self.env._(
|
||||||
"Incorrect CFONB120 file:\n"
|
"Incorrect CFONB120 file:\nthe file is not divisible in 120 char lines"
|
||||||
"the file is not divisible in 120 char lines"
|
|
||||||
)
|
)
|
||||||
res["notifications"].append({"type": "error", "message": message})
|
res["notifications"].append({"type": "error", "message": message})
|
||||||
return datas
|
return datas
|
||||||
|
|||||||
@@ -69,8 +69,7 @@ class EbicsUserID(models.Model):
|
|||||||
string="Users",
|
string="Users",
|
||||||
required=True,
|
required=True,
|
||||||
domain=[("share", "=", False)],
|
domain=[("share", "=", False)],
|
||||||
help="Users who are allowed to use this EBICS UserID for "
|
help="Users who are allowed to use this EBICS UserID for bank transactions.",
|
||||||
" bank transactions.",
|
|
||||||
)
|
)
|
||||||
signature_class = fields.Selection(
|
signature_class = fields.Selection(
|
||||||
selection=[("E", "Single signature"), ("T", "Transport signature")],
|
selection=[("E", "Single signature"), ("T", "Transport signature")],
|
||||||
@@ -149,7 +148,7 @@ class EbicsUserID(models.Model):
|
|||||||
# create self-signed X.509 certificates
|
# create self-signed X.509 certificates
|
||||||
ebics_key_x509 = fields.Boolean(
|
ebics_key_x509 = fields.Boolean(
|
||||||
string="X509 support",
|
string="X509 support",
|
||||||
help="Set this flag in order to work with " "self-signed X.509 certificates",
|
help="Set this flag in order to work with self-signed X.509 certificates",
|
||||||
)
|
)
|
||||||
ebics_key_x509_dn_cn = fields.Char(
|
ebics_key_x509_dn_cn = fields.Char(
|
||||||
string="Common Name [CN]",
|
string="Common Name [CN]",
|
||||||
@@ -417,7 +416,7 @@ class EbicsUserID(models.Model):
|
|||||||
if not ebics_config_bank:
|
if not ebics_config_bank:
|
||||||
raise UserError(
|
raise UserError(
|
||||||
self.env._(
|
self.env._(
|
||||||
"No bank defined for the financial journal " "of the EBICS Config"
|
"No bank defined for the financial journal of the EBICS Config"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
# generated from manifests external_dependencies
|
# generated from manifests external_dependencies
|
||||||
|
cryptography
|
||||||
|
fintech
|
||||||
|
|||||||
Reference in New Issue
Block a user