[18.0][IMP] pre-commit updates

This commit is contained in:
Luc De Meyer committed 2026-10-25 20:47:43 +01:00
1 parent c29b3fd1a1
commit 94538825e1
35 files changed
+91 -106

No files matched your search

+4 -6
View File
@@ -69,8 +69,7 @@ class EbicsUserID(models.Model):
string="Users",
required=True,
domain=[("share", "=", False)],
help="Users who are allowed to use this EBICS UserID for "
" bank transactions.",
help="Users who are allowed to use this EBICS UserID for bank transactions.",
)
signature_class = fields.Selection(
selection=[("E", "Single signature"), ("T", "Transport signature")],
@@ -149,7 +148,7 @@ class EbicsUserID(models.Model):
# create self-signed X.509 certificates
ebics_key_x509 = fields.Boolean(
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(
string="Common Name [CN]",
@@ -417,7 +416,7 @@ class EbicsUserID(models.Model):
if not ebics_config_bank:
raise UserError(
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:
@@ -476,8 +475,7 @@ class EbicsUserID(models.Model):
if cc in ["FR", "DE"]:
lang = cc
else:
lang = self.env.user.lang or self.env["res.lang"].search([])[0].code
lang = lang[:2]
lang = self.env.user.lang[:2]
lang = lang.lower()
lang = lang if lang in INI_LETTER_LANGS else "en"
fn_date = fields.Date.today().isoformat()