Commit Graph
97 Commits
Author SHA1 Message Date
Jérémy Didderen 00052ed03c [FIX] account_ebics - Number duplicate upload file names before the extension
A duplicate upload name got the counter appended to the previous
candidate and after the extension: pay.xml_1, then pay.xml_1_2,
pay.xml_1_2_3. Keep the extension and number from the original name:
pay_1.xml, pay_2.xml.
2026-11-09 00:06:34 +01:00
Jérémy Didderen cc6ef173f0 [IMP] account_ebics - Add unit tests
Forward-port of the 18.0 tests. Add 108 tests (101 in the Community job):

- account_ebics: order numbers, camt and CFONB split per account,
  journal lookup, duplicate statements, download and upload wizards,
  client setup with real keys, key initialisation (INI/HIA/HPB),
  passphrase change, admin orders.
- account_ebics_batch: scheduled import, import log, reprocess.
- account_ebics_payment_order / account_ebics_batch_payment: upload of
  the payment file and link to the payment document.
- account_ebics_statement_import_test (new, test-only, not to install
  in production): installs the OCA camt and CFONB parsers in CI and
  runs the end-to-end statement import.
- account_ebics_oe_statement_import_test (new, test-only, Enterprise
  job only): same through the Odoo Enterprise camt import.

The bank is simulated by patching the EBICS transport; keys,
certificates and the INI letter are real, created in a temporary
directory. 19.0 differences: no account_ebics_oca_statement_import
module (its glue-specific tests are dropped), res.users.group_ids.
2026-11-09 00:06:34 +01:00
Jérémy Didderen 2dc0f0f957 [FIX] account_ebics - Report passphrase mismatch when checking keys
The keyring was built outside the try block, and fintech raises the
passphrase error from the EbicsKeyRing constructor: a wrong passphrase
showed a raw ValueError traceback instead of "Passphrase mismatch.".
When another keyring instance on the same file is still open in the
worker, fintech raises RuntimeError instead, which is now caught too.
2026-11-09 00:06:34 +01:00
Jérémy Didderen 70f43474c9 [FIX] account_ebics - Explain missing journal in EBICS key initialisation
ebics_init_1 read journal_ids[0] before checking it, so a configuration
without journal raised an IndexError instead of the "No bank defined"
message.
2026-11-09 00:06:34 +01:00
Jérémy Didderen ee2355c1b1 [FIX] account_ebics - Report errors of EBICS administrative orders
The note was not initialised, so a failed client setup raised a
TypeError on note += ...; and functional errors were not caught, showing
a raw traceback. Initialise the note and report EbicsFunctionalError
like EbicsTechnicalError.
2026-11-09 00:06:34 +01:00
Jérémy Didderen 1ea94f8a3b [FIX] account_ebics - Allow removing pain.002 EBICS files
The pain.002 unlink hook raised NotImplementedError, so no EBICS file
with that processing method could be deleted. Make it a no-op
placeholder like the other formats.
2026-11-09 00:06:34 +01:00
Jérémy Didderen 30917631fb [FIX] account_ebics - Wrap order number ZZZZ to A000
ZZZZ is accepted by the order number constraint, but the next number was
computed as 0000, which the constraint then rejects, blocking H003
uploads. Wrap it to A000 like ZZZY already does.
2026-11-09 00:06:34 +01:00
Jérémy Didderen c977675dc4 [FIX] account_ebics - Do not commit during tests in the Enterprise import
_process_bank_statement_oe commits after each statement. Under tests this
leaves the test transaction (19.0 test cursors even raise on commit).
Skip the commit while a test runs, using odoo.modules.module.current_test:
Registry.in_test_mode() and the thread "testing" flag no longer exist in
19.0.
2026-11-09 00:06:34 +01:00
Jérémy Didderen ce839c29cf [REM] account_ebics - Remove unused ebics.xfer._update_order_number
Every caller uses ebics.config._update_order_number. The wizard copy was
dead and wrong: it did not reset Z to 0 when carrying (A0ZZ -> A1ZZ).
2026-11-08 23:51:24 +01:00
Jérémy Didderen 5d8809e2d8 [FIX] account_ebics - Report camt statements without account number
The xpath result was indexed before the emptiness check, so a statement
without IBAN or other account id raised an IndexError instead of the
"No bank account number found." notification.
2026-11-08 23:51:24 +01:00
Jérémy Didderen 5abf2337a9 [FIX] account_ebics - Stop camt split on an invalid XML file
The error was noted but processing went on with root.nsmap, raising an
AttributeError. Unparseable content now also yields the "Invalid XML
file." notification instead of an XMLSyntaxError.
2026-11-08 23:51:24 +01:00
Jérémy Didderen 8407d8dba6 [IMP] addons-repo-template v9.2.1 2026-11-08 23:51:11 +01:00
Luc De Meyer fccfd80f07 [19.0][IMP] copier update 2026-10-26 10:06:36 +01:00
oca-ci 425cf9515c [UPD] Update account_ebics.pot 2026-10-12 20:06:27 +00:00
Luc De Meyer 68914789b8 [FIX] account_ebics: IndexError in _split_camt for camt.054
Fix IndexError in _split_camt when camt.054 has no currency at statement level.
This commit implements the following changes:
- discard statements without entries before attempting currency extraction
- fall back to Ntry/Amt/@Ccy for camt.054 when Acct/Ccy and Bal/Amt/@Ccy are absent
2026-10-12 22:03:59 +02:00
Jérémy Didderen cd321196bb [I18N] Translate fr, nl and de 2026-10-11 23:38:34 +02:00
fa440a46a9 Translated using Weblate (German)
Currently translated at 61.1% (11 of 18 strings)

Translated using Weblate (German)

Currently translated at 70.5% (12 of 17 strings)

Translated using Weblate (German)

Currently translated at 70.5% (12 of 17 strings)

Translated using Weblate (German)

Currently translated at 94.4% (34 of 36 strings)

Translated using Weblate (German)

Currently translated at 96.9% (283 of 292 strings)

Translated using Weblate (German)

Currently translated at 96.9% (283 of 292 strings)

Translated using Weblate (Dutch)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (Dutch)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (French)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (French)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (Dutch)

Currently translated at 66.6% (12 of 18 strings)

Translated using Weblate (French)

Currently translated at 66.6% (12 of 18 strings)

Co-authored-by: Jérémy Didderen <jeremy.didderen@noviat.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/nl/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/nl/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
Translation: Noviat Generic - Account EBICS - v19/account_ebics_payment_order
2026-10-11 21:19:01 +00:00
WeblateandWeblate Translation Memory cb43c6120c Translated using Weblate (German)
Currently translated at 33.3% (6 of 18 strings)

Translated using Weblate (German)

Currently translated at 17.6% (3 of 17 strings)

Translated using Weblate (German)

Currently translated at 41.6% (15 of 36 strings)

Translated using Weblate (German)

Currently translated at 17.8% (52 of 292 strings)

Translated using Weblate (French)

Currently translated at 58.8% (10 of 17 strings)

Translated using Weblate (French)

Currently translated at 97.9% (286 of 292 strings)

Translated using Weblate (French)

Currently translated at 61.1% (11 of 18 strings)

Translated using Weblate (Dutch)

Currently translated at 58.8% (10 of 17 strings)

Translated using Weblate (Dutch)

Currently translated at 97.9% (286 of 292 strings)

Translated using Weblate (Dutch)

Currently translated at 61.1% (11 of 18 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/nl/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/nl/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/nl/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
Translation: Noviat Generic - Account EBICS - v19/account_ebics_payment_order
2026-10-11 20:04:11 +00:00
Jérémy Didderen a5002c4c26 [I18N] Add de translation files 2026-10-11 22:00:35 +02:00
Weblate a9d8081033 Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-10-11 19:03:04 +00:00
Weblate 2965cc6484 Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-10-11 19:03:04 +00:00
oca-ci 8f5a5ca81a [UPD] Update account_ebics.pot 2026-10-11 19:02:55 +00:00
Luc De Meyer 2d301e87f8 [IMP] Add upload state tracking on EBICS payment files
account_ebics:
- Add pain_state and ebics_order_number to ebics.file
- Set these fields after a successful upload
- Add neutralized property to api.Environment

account_ebics_batch_payment:
- Add EBICS notebook page with upload info to batch payment form
- Post chatter message with OrderID after upload

account_ebics_payment_order:
- Fix broken postprocess: replace deprecated active_model/active_id
  context keys with model/id
2026-10-11 20:59:48 +02:00
Jérémy Didderen 2cfdbd50f8 [FIX] account_ebics - README facts checked against the code 2026-10-11 16:24:04 +02:00
Jérémy Didderen 16e5df2d4e [IMP] account_ebics - rework readme 2026-10-11 14:47:05 +02:00
Weblate f0a3fc944a Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-08-12 14:26:33 +00:00
Weblate 2183065310 Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-08-12 14:26:33 +00:00
oca-ci 050c8aa6c8 [UPD] Update account_ebics.pot 2026-08-12 14:26:25 +00:00
Luc De Meyer f5dbf1b754 [FIX] account_ebics: fix EBICS Manager security group 2026-08-12 16:23:12 +02:00
Luc De Meyer d5753e0016 [IMP] allow statement download by OdooBot 2026-08-04 15:04:51 +02:00
Jérémy Didderen aaab8ecfbd translations 2026-06-04 14:34:14 +02:00
WeblateandWeblate Translation Memory 52e8621aed Translated using Weblate (French)
Currently translated at 15.6% (45 of 288 strings)

Translated using Weblate (French)

Currently translated at 50.0% (3 of 6 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/fr/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
2026-06-04 12:17:02 +00:00
WeblateandWeblate Translation Memory 1ed240e99e Translated using Weblate (Dutch)
Currently translated at 14.2% (41 of 288 strings)

Translated using Weblate (Dutch)

Currently translated at 50.0% (3 of 6 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/nl/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/nl/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
2026-06-04 12:17:02 +00:00
oca-ci f1bda00d4b [UPD] Update account_ebics.pot 2026-04-27 09:26:49 +00:00
Jan Suhr 4aa9602fac [19.0] account_ebics: fix same label warning for ebics_config_id/ids 2026-04-27 11:24:42 +02:00
Luc De Meyer 0bbbfd2425 [IMP] account_ebics, account_ebics_batch_payment: bump module versions 2026-04-18 15:38:07 +02:00
oca-ci 451d985a86 [UPD] Update account_ebics.pot 2026-04-17 16:33:39 +00:00
Luc De Meyer ed27aa25e4 [IMP] add 'Mark files as Downloaded' menu entry to the EBICS configuration section 2026-04-17 18:31:12 +02:00
Luc De Meyer 4bf699a7c5 [IMP] batch payment: hide ebics_upload button on non-ebics journals 2026-04-17 18:31:12 +02:00
Luc De Meyer 0cc861126a [FIX] ebics download: execute always client.confirm_download()
Certain banks expect always a confirm_download, also in case of success=False.
2026-04-17 18:31:12 +02:00
oca-ci f9a2e71bdb [UPD] Update account_ebics.pot 2026-03-06 21:30:45 +00:00
oca-ci a96e973c79 [UPD] Update account_ebics.pot 2026-03-02 19:39:21 +00:00
Luc De Meyer 71835fae7b [MIG] account_ebics: Migration to 19.0 2026-03-02 20:36:38 +01:00
Luc De Meyer 051c68f785 [IMP] account_ebics: pre-commit auto fixes 2026-03-02 20:36:38 +01:00
Weblate 8d88f5135b Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v18/account_ebics/
Translation: Noviat Generic - Account EBICS - v18/account_ebics
2026-03-02 20:36:38 +01:00
Weblate 2b4d24e4a9 Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v18/account_ebics/
Translation: Noviat Generic - Account EBICS - v18/account_ebics
2026-03-02 20:36:38 +01:00
oca-ci 9c0d611d29 [UPD] Update account_ebics.pot 2026-03-02 20:36:38 +01:00
Luc De Meyer 1c7b019532 [IMP] account_ebics: bump module version 2026-03-02 20:36:38 +01:00
Luc De Meyer 192a238cce [FIX] fix stack trace admin order 2026-03-02 20:36:38 +01:00
Luc De Meyer 52665b3960 [IMP] account_ebics: bump module version 2026-03-02 20:36:38 +01:00