Merge pull request #116 from Noviat/19.0

Syncing from upstream Noviat/account_ebics (19.0)
This commit is contained in:
braintec authored and GitHub committed 2026-10-13 05:50:59 +02:00
commit 1661ddfa5b
7 files changed
+142 -89

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_ebics](account_ebics/) | 19.0.1.3.0 | | Download bank statements and upload payment files directly from Odoo, using the European EBICS standard
[account_ebics](account_ebics/) | 19.0.1.3.1 | | Download bank statements and upload payment files directly from Odoo, using the European EBICS standard
[account_ebics_batch](account_ebics_batch/) | 19.0.1.0.1 | | Download and process your EBICS files automatically, on a schedule
[account_ebics_batch_payment](account_ebics_batch_payment/) | 19.0.1.3.0 | | Send an Odoo Enterprise batch payment to the bank over EBICS
[account_ebics_oe](account_ebics_oe/) | 19.0.1.0.0 | | Place the EBICS menus in the Odoo Enterprise accounting application
+1 -1
View File
@@ -5,7 +5,7 @@
"name": "EBICS Banking Protocol",
"summary": "Download bank statements and upload payment "
"files directly from Odoo, using the European EBICS standard",
"version": "19.0.1.3.0",
"version": "19.0.1.3.1",
"license": "LGPL-3",
"author": "Noviat",
"website": "https://www.noviat.com/",
+6
View File
@@ -1160,6 +1160,12 @@ msgstr ""
msgid "No bank defined for the financial journal of the EBICS Config"
msgstr ""
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
msgid "No currency found in statement for Account Number %(nbr)s."
msgstr ""
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
+65 -35
View File
@@ -35,8 +35,7 @@ msgstr "%(st_cnt)s Kontoauszug%(sp)s importiert: "
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"'%(filename)s' has been uploaded via EBICS (OrderID: %(order_number)s)."
msgid "'%(filename)s' has been uploaded via EBICS (OrderID: %(order_number)s)."
msgstr ""
"'%(filename)s' wurde über EBICS hochgeladen (Auftrags-ID: %(order_number)s)."
@@ -136,7 +135,8 @@ msgstr "BTF-Nachrichtenname"
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__btf_message
msgid ""
"BTF Message Name\n"
"The message name consisting of up to 10 alphanumeric characters [a-z0-9.] (eg. pain.001, pain.008, camt.053)"
"The message name consisting of up to 10 alphanumeric characters [a-z0-9.] "
"(eg. pain.001, pain.008, camt.053)"
msgstr ""
"BTF-Nachrichtenname\n"
"Der Nachrichtenname aus bis zu 10 alphanumerischen Zeichen [a-z0-9.] (z. B. "
@@ -161,7 +161,8 @@ msgstr "BTF-Dienst"
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__btf_service
msgid ""
"BTF Service Name)\n"
"The service code name consisting of 3 alphanumeric characters [A-Z0-9] (e.g. SCT, SDD, STM, EOP)"
"The service code name consisting of 3 alphanumeric characters [A-Z0-9] (e.g. "
"SCT, SDD, STM, EOP)"
msgstr ""
"BTF-Servicename)\n"
"Der Servicecodename aus 3 alphanumerischen Zeichen [A-Z0-9] (z. B. SCT, SDD, "
@@ -261,7 +262,8 @@ msgstr "Bestätigt"
#: model:ir.model.fields,help:account_ebics.field_ebics_config__ebics_host
msgid ""
"Contact your bank to get the EBICS HostID.\n"
"In France the BIC is usually allocated to the HostID whereas in Germany it tends to be an institute specific string of 8 characters."
"In France the BIC is usually allocated to the HostID whereas in Germany it "
"tends to be an institute specific string of 8 characters."
msgstr ""
"Wenden Sie sich an Ihre Bank, um die EBICS-HostID zu erhalten.\n"
"In Frankreich wird der HostID in der Regel der BIC zugewiesen, während es "
@@ -416,8 +418,10 @@ msgstr "Dummy-Dateiname für Upload"
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__name
msgid ""
"E.g. camt.xxx.cfonb120.stm, pain.001.001.03.sct.\n"
"Specify camt.052, camt.053, camt.054 for camt Order Types such as C53, Z53, C54, Z54.\n"
"This name has to match the 'Request Type' in your EBICS contract for Order Type 'FDL' or 'FUL'.\n"
"Specify camt.052, camt.053, camt.054 for camt Order Types such as C53, Z53, "
"C54, Z54.\n"
"This name has to match the 'Request Type' in your EBICS contract for Order "
"Type 'FDL' or 'FUL'.\n"
msgstr ""
"Z. B. camt.xxx.cfonb120.stm, pain.001.001.03.sct.\n"
"Geben Sie camt.052, camt.053, camt.054 für camt-Auftragsarten wie C53, Z53, "
@@ -437,7 +441,9 @@ msgstr "EBICS"
#: model:ir.model.fields,help:account_ebics.field_ebics_xfer__order_type
msgid ""
"EBICS 3.0: BTD (download) or BTU (upload).\n"
"EBICS 2.0: E.g. C53 (check your EBICS contract). For most banks in France you should use the format neutral Order Types 'FUL' for upload and 'FDL' for download."
"EBICS 2.0: E.g. C53 (check your EBICS contract). For most banks in France "
"you should use the format neutral Order Types 'FUL' for upload and 'FDL' for "
"download."
msgstr ""
"EBICS 3.0: BTD (Download) oder BTU (Upload).\n"
"EBICS 2.0: z. B. C53 (prüfen Sie Ihren EBICS-Vertrag). Für die meisten "
@@ -557,7 +563,8 @@ msgstr "EBICS-Datei wurde hochgeladen (OrderID %s)."
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"EBICS File with name '%s' has already been downloaded.\n"
"Please check this file and rename in case there is no risk on duplicate transactions."
"Please check this file and rename in case there is no risk on duplicate "
"transactions."
msgstr ""
"EBICS-Datei mit dem Namen '%s' wurde bereits heruntergeladen.\n"
"Bitte überprüfen Sie diese Datei und benennen Sie sie um, falls kein Risiko "
@@ -575,8 +582,8 @@ msgid ""
"EBICS Functional Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"Funktionaler EBICS-Fehler beim Herunterladen des Dateiformats %(name)s (%"
"(order_type)s):"
"Funktionaler EBICS-Fehler beim Herunterladen des Dateiformats %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#. odoo-python
@@ -732,8 +739,8 @@ msgid ""
"EBICS Technical Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"Technischer EBICS-Fehler beim Herunterladen des Dateiformats %(name)s (%"
"(order_type)s):"
"Technischer EBICS-Fehler beim Herunterladen des Dateiformats %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#. odoo-python
@@ -788,8 +795,8 @@ msgid ""
"EBICS Verification Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"EBICS-Verifizierungsfehler beim Herunterladen des Dateiformats %(name)s (%"
"(order_type)s):"
"EBICS-Verifizierungsfehler beim Herunterladen des Dateiformats %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#. odoo-python
@@ -1029,7 +1036,10 @@ msgstr "H005 (3.0)"
#: model:ir.model.fields,help:account_ebics.field_ebics_userid__name
msgid ""
"Human users or a technical system that is/are assigned to a customer. \n"
"On the EBICS bank server it is identified by the combination of UserID and PartnerID. The technical subscriber serves only for the data exchange between customer and financial institution. The human user also can authorise orders."
"On the EBICS bank server it is identified by the combination of UserID and "
"PartnerID. The technical subscriber serves only for the data exchange "
"between customer and financial institution. The human user also can "
"authorise orders."
msgstr ""
"Menschliche Benutzer oder ein technisches System, die einem Kunden "
"zugeordnet ist/sind. \n"
@@ -1228,6 +1238,12 @@ msgstr "Keine Bankkontonummer gefunden."
msgid "No bank defined for the financial journal of the EBICS Config"
msgstr "Keine Bank für das Finanzjournal der EBICS-Konfiguration definiert"
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
msgid "No currency found in statement for Account Number %(nbr)s."
msgstr ""
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
@@ -1307,8 +1323,12 @@ msgstr "Name der Organisationseinheit [OU]"
#. module: account_ebics
#: model:ir.model.fields,help:account_ebics.field_ebics_config__ebics_partner
msgid ""
"Organizational unit (company or individual) that concludes a contract with the bank. \n"
"In this contract it will be agreed which order types (file formats) are used, which accounts are concerned, which of the customer's users (subscribers) communicate with the EBICS bank server and the authorisations that these users will possess. \n"
"Organizational unit (company or individual) that concludes a contract with "
"the bank. \n"
"In this contract it will be agreed which order types (file formats) are "
"used, which accounts are concerned, which of the customer's users "
"(subscribers) communicate with the EBICS bank server and the authorisations "
"that these users will possess. \n"
"It is identified by the PartnerID."
msgstr ""
"Organisationseinheit (Unternehmen oder Einzelperson), die einen Vertrag mit "
@@ -1339,7 +1359,8 @@ msgstr "Passphrasen stimmen nicht überein."
#. module: account_ebics
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__signature_class
msgid ""
"Please doublecheck the security of your Odoo ERP system when using class 'E' to prevent unauthorised users to make supplier payments.\n"
"Please doublecheck the security of your Odoo ERP system when using class 'E' "
"to prevent unauthorised users to make supplier payments.\n"
"Leave this field empty to use the default defined for your EBICS UserID."
msgstr ""
"Bitte überprüfen Sie die Sicherheit Ihres Odoo-ERP-Systems, wenn Sie die "
@@ -1401,7 +1422,8 @@ msgstr "Stammverzeichnis zum Speichern der EBICS-Schlüssel."
#: model:ir.model.fields,help:account_ebics.field_ebics_file_format__btf_scope
msgid ""
"Scope of service.\n"
"Either an ISO-3166 ALPHA 2 country code or an issuer code of 3 alphanumeric characters [A-Z0-9]."
"Either an ISO-3166 ALPHA 2 country code or an issuer code of 3 alphanumeric "
"characters [A-Z0-9]."
msgstr ""
"Geltungsbereich des Service.\n"
"Entweder ein Ländercode nach ISO-3166 ALPHA 2 oder ein Herausgebercode aus 3 "
@@ -1476,8 +1498,8 @@ msgstr ""
#. odoo-python
#: code:addons/account_ebics/models/ebics_userid.py:0
msgid ""
"Set the EBICS Configuation record to 'Draft' before starting the Key Renewal"
" process."
"Set the EBICS Configuation record to 'Draft' before starting the Key Renewal "
"process."
msgstr ""
"Setzen Sie den EBICS-Konfigurationsdatensatz auf 'Entwurf', bevor Sie den "
"Schlüsselerneuerungsprozess starten."
@@ -1504,7 +1526,8 @@ msgstr "Auf Entwurf setzen"
#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_config_view_form
msgid "Set to Draft in order to change the EBICS configuration parameters."
msgstr "Setzen Sie auf Entwurf, um die EBICS-Konfigurationsparameter zu ändern."
msgstr ""
"Setzen Sie auf Entwurf, um die EBICS-Konfigurationsparameter zu ändern."
#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_userid_view_form
@@ -1593,9 +1616,12 @@ msgstr "Testmodus"
#. module: account_ebics
#: model_terms:ir.ui.view,arch_db:account_ebics.ebics_xfer_view_form_mark_as_downloaded
msgid ""
"The EBICS Files (Bank Statements) selected via this screen will not become available in Odoo as EBICS files but will be marked by your bank as downloaded.\n"
"The EBICS Files (Bank Statements) selected via this screen will not become "
"available in Odoo as EBICS files but will be marked by your bank as "
"downloaded.\n"
" <br/>\n"
" As a consequence, these Bank Statements will not be retrieved by the next 'EBICS Batch Import' scheduled action."
" As a consequence, these Bank Statements will not be "
"retrieved by the next 'EBICS Batch Import' scheduled action."
msgstr ""
"Die über diesen Bildschirm ausgewählten EBICS-Dateien (Kontoauszüge) werden "
"in Odoo nicht als EBICS-Dateien verfügbar, sondern von Ihrer Bank als "
@@ -1669,7 +1695,8 @@ msgstr "Die Schlüsselversion der elektronischen Unterschrift."
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
msgid ""
"The module to process the '%(ebics_format)s' format is not installed on your system. \n"
"The module to process the '%(ebics_format)s' format is not installed on your "
"system. \n"
"Please install module '%(module)s'"
msgstr ""
"Das Modul zur Verarbeitung des Formats '%(ebics_format)s' ist auf Ihrem "
@@ -1680,7 +1707,8 @@ msgstr ""
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
msgid ""
"The module to process the '%(ebics_format)s' format is not installed on your system. \n"
"The module to process the '%(ebics_format)s' format is not installed on your "
"system. \n"
"Please install one of the following modules: \n"
"%(modules)s."
msgstr ""
@@ -1742,11 +1770,10 @@ msgstr "Unbekannter Fehler"
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"Unknown Error during download of File Format %(name)s (%(order_type)s):"
msgid "Unknown Error during download of File Format %(name)s (%(order_type)s):"
msgstr ""
"Unbekannter Fehler beim Herunterladen des Dateiformats %(name)s (%"
"(order_type)s):"
"Unbekannter Fehler beim Herunterladen des Dateiformats %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#: model:ir.model.fields.selection,name:account_ebics.selection__ebics_file_format__type__up
@@ -1863,8 +1890,11 @@ msgstr "Warnungen"
#: model:ir.model.fields,help:account_ebics.field_ebics_userid__ebics_passphrase_store
#: model:ir.model.fields,help:account_ebics.field_ebics_xfer__ebics_passphrase_store
msgid ""
"When you uncheck this option the passphrase to unlock your private key will not be stored in the database. We recommend to use this if you want to upload signed payment orders via EBICS.\n"
"You will be prompted to enter the passphrase for every EBICS transaction, hence do not uncheck this option on a userid for automated EBICS downloads."
"When you uncheck this option the passphrase to unlock your private key will "
"not be stored in the database. We recommend to use this if you want to "
"upload signed payment orders via EBICS.\n"
"You will be prompted to enter the passphrase for every EBICS transaction, "
"hence do not uncheck this option on a userid for automated EBICS downloads."
msgstr ""
"Wenn Sie diese Option deaktivieren, wird die Passphrase zum Entsperren Ihres "
"privaten Schlüssels nicht in der Datenbank gespeichert. Wir empfehlen dies, "
@@ -1894,8 +1924,8 @@ msgstr "Sie können nur EBICS-Dateien im Status 'Entwurf' entfernen."
#: model:ir.model.fields,help:account_ebics.field_ebics_userid__ebics_sig_passphrase
msgid ""
"You can set here a different passphrase for the EBICS signing key. This "
"passphrase will never be stored hence you'll need to specify your passphrase"
" for each transaction that requires a digital signature."
"passphrase will never be stored hence you'll need to specify your passphrase "
"for each transaction that requires a digital signature."
msgstr ""
"Hier können Sie eine abweichende Passphrase für den EBICS-Signaturschlüssel "
"festlegen. Diese Passphrase wird niemals gespeichert, daher müssen Sie Ihre "
+23 -18
View File
@@ -37,8 +37,7 @@ msgstr "%(st_cnt)s relevé bancaire%(sp)s été importé : "
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid "'%(filename)s' has been uploaded via EBICS (OrderID: %(order_number)s)."
msgstr ""
"'%(filename)s' a été téléversé via EBICS (ID de commande : "
"%(order_number)s)."
"'%(filename)s' a été téléversé via EBICS (ID de commande : %(order_number)s)."
#. module: account_ebics
#: model:ir.model.fields,help:account_ebics.field_ebics_file__date_from
@@ -580,11 +579,11 @@ msgstr "Fichiers EBICS"
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"EBICS Functional Error during download of File Format %(name)s (%"
"(order_type)s):"
"EBICS Functional Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"Erreur fonctionnelle EBICS lors du téléchargement du format de fichier %"
"(name)s (%(order_type)s) :"
"Erreur fonctionnelle EBICS lors du téléchargement du format de fichier "
"%(name)s (%(order_type)s) :"
#. module: account_ebics
#. odoo-python
@@ -734,8 +733,8 @@ msgstr "Phrase secrète EBICS enregistrée"
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"EBICS Technical Error during download of File Format %(name)s (%"
"(order_type)s):"
"EBICS Technical Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"Erreur technique EBICS lors du téléchargement du format de fichier %(name)s "
"(%(order_type)s) :"
@@ -790,11 +789,11 @@ msgstr "Utilisateurs EBICS"
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"EBICS Verification Error during download of File Format %(name)s (%"
"(order_type)s):"
"EBICS Verification Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"Erreur de vérification EBICS lors du téléchargement du format de fichier %"
"(name)s (%(order_type)s) :"
"Erreur de vérification EBICS lors du téléchargement du format de fichier "
"%(name)s (%(order_type)s) :"
#. module: account_ebics
#. odoo-python
@@ -937,8 +936,8 @@ msgstr "Erreur"
msgid ""
"Error detected during download of File Format %(name)s (%(order_type)s):"
msgstr ""
"Erreur détectée lors du téléchargement du format de fichier %(name)s (%"
"(order_type)s) :"
"Erreur détectée lors du téléchargement du format de fichier %(name)s "
"(%(order_type)s) :"
#. module: account_ebics
#. odoo-python
@@ -1235,13 +1234,19 @@ msgstr "Aucun numéro de compte bancaire trouvé."
msgid "No bank defined for the financial journal of the EBICS Config"
msgstr "Aucune banque définie pour le journal financier de la config EBICS"
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
msgid "No currency found in statement for Account Number %(nbr)s."
msgstr ""
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
msgid "No financial journal found for Account Number %(nbr)s, Currency %(cc)s"
msgstr ""
"Aucun journal financier trouvé pour le numéro de compte %(nbr)s, devise %"
"(cc)s"
"Aucun journal financier trouvé pour le numéro de compte %(nbr)s, devise "
"%(cc)s"
#. module: account_ebics
#: model:ir.model.fields,field_description:account_ebics.field_ebics_change_passphrase__note
@@ -1764,8 +1769,8 @@ msgstr "Erreur inconnue"
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid "Unknown Error during download of File Format %(name)s (%(order_type)s):"
msgstr ""
"Erreur inconnue lors du téléchargement du format de fichier %(name)s (%"
"(order_type)s) :"
"Erreur inconnue lors du téléchargement du format de fichier %(name)s "
"(%(order_type)s) :"
#. module: account_ebics
#: model:ir.model.fields.selection,name:account_ebics.selection__ebics_file_format__type__up
+22 -16
View File
@@ -577,11 +577,11 @@ msgstr "EBICS-bestanden"
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"EBICS Functional Error during download of File Format %(name)s (%"
"(order_type)s):"
"EBICS Functional Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"EBICS functionele fout tijdens het downloaden van bestandsformaat %(name)s (%"
"(order_type)s):"
"EBICS functionele fout tijdens het downloaden van bestandsformaat %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#. odoo-python
@@ -733,11 +733,11 @@ msgstr "Opgeslagen EBICS-wachtwoordzin"
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"EBICS Technical Error during download of File Format %(name)s (%"
"(order_type)s):"
"EBICS Technical Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"Technische EBICS-fout tijdens het downloaden van bestandsformaat %(name)s (%"
"(order_type)s):"
"Technische EBICS-fout tijdens het downloaden van bestandsformaat %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#. odoo-python
@@ -788,11 +788,11 @@ msgstr "EBICS-gebruikers"
#. odoo-python
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid ""
"EBICS Verification Error during download of File Format %(name)s (%"
"(order_type)s):"
"EBICS Verification Error during download of File Format %(name)s "
"(%(order_type)s):"
msgstr ""
"EBICS-verificatiefout tijdens het downloaden van bestandsformaat %(name)s (%"
"(order_type)s):"
"EBICS-verificatiefout tijdens het downloaden van bestandsformaat %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#. odoo-python
@@ -935,8 +935,8 @@ msgstr "Fout"
msgid ""
"Error detected during download of File Format %(name)s (%(order_type)s):"
msgstr ""
"Fout gedetecteerd tijdens het downloaden van bestandsformaat %(name)s (%"
"(order_type)s):"
"Fout gedetecteerd tijdens het downloaden van bestandsformaat %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#. odoo-python
@@ -1234,6 +1234,12 @@ msgstr "Geen bankrekeningnummer gevonden."
msgid "No bank defined for the financial journal of the EBICS Config"
msgstr "Geen bank gedefinieerd voor het financiële dagboek van de EBICS-config"
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
msgid "No currency found in statement for Account Number %(nbr)s."
msgstr ""
#. module: account_ebics
#. odoo-python
#: code:addons/account_ebics/models/ebics_file.py:0
@@ -1758,8 +1764,8 @@ msgstr "Onbekende fout"
#: code:addons/account_ebics/wizards/ebics_xfer.py:0
msgid "Unknown Error during download of File Format %(name)s (%(order_type)s):"
msgstr ""
"Onbekende fout tijdens het downloaden van bestandsformaat %(name)s (%"
"(order_type)s):"
"Onbekende fout tijdens het downloaden van bestandsformaat %(name)s "
"(%(order_type)s):"
#. module: account_ebics
#: model:ir.model.fields.selection,name:account_ebics.selection__ebics_file_format__type__up
+24 -18
View File
@@ -590,9 +590,21 @@ class EbicsFile(models.Model):
message = self.env._("No bank account number found.")
res["notifications"].append({"type": "error", "message": message})
continue
currency_code = stmt.xpath(
if not stmt.findall("ns:Ntry", ns):
continue
currency_codes = stmt.xpath(
"ns:Acct/ns:Ccy/text() | ns:Bal/ns:Amt/@Ccy", namespaces=ns
)[0]
)
if not currency_codes and camt_variant == "054":
currency_codes = stmt.xpath("ns:Ntry/ns:Amt/@Ccy", namespaces=ns)
if not currency_codes:
message = self.env._(
"No currency found in statement for Account Number %(nbr)s.",
nbr=acc_number,
)
res["notifications"].append({"type": "error", "message": message})
continue
currency_code = currency_codes[0]
# some banks (e.g. COMMERZBANK) add the currency as the last 3 digits
# of the bank account number hence we need to remove this since otherwise
# the journal matching logic fails
@@ -600,26 +612,20 @@ class EbicsFile(models.Model):
acc_number = acc_number[:-3]
root_new = deepcopy(root)
entries = False
for j, el in enumerate(root_new[0].findall(f"ns:{camt_tag}", ns)):
if j != i:
el.getparent().remove(el)
else:
entries = el.findall("ns:Ntry", ns)
if not entries:
currency, journal = self._lookup_journal(res, acc_number, currency_code)
if not (currency and journal):
continue
else:
currency, journal = self._lookup_journal(res, acc_number, currency_code)
if not (currency and journal):
continue
datas.append(
{
"acc_number": acc_number,
"journal_id": journal.id,
"company_id": journal.company_id.id,
"data": base64.b64encode(etree.tostring(root_new)),
}
)
datas.append(
{
"acc_number": acc_number,
"journal_id": journal.id,
"company_id": journal.company_id.id,
"data": base64.b64encode(etree.tostring(root_new)),
}
)
return datas